Merge "mmc: block: Return error in case of partition switch failure"

This commit is contained in:
Linux Build Service Account 2017-10-06 03:11:22 -07:00 committed by Gerrit - the friendly Code Review server
commit 4715598d50

View file

@ -4000,7 +4000,7 @@ static int mmc_blk_cmdq_issue_rq(struct mmc_queue *mq, struct request *req)
} else { } else {
pr_err("%s: %s: partition switch failed err = %d\n", pr_err("%s: %s: partition switch failed err = %d\n",
md->disk->disk_name, __func__, err); md->disk->disk_name, __func__, err);
ret = 0; ret = err;
goto out; goto out;
} }
} }