Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6501338f authored by Can Guo's avatar Can Guo Committed by Gerrit - the friendly Code Review server
Browse files

mmc: block: fix one coding error



'new_req' checked for NULL may be dereferenced. Fix it by using 'old_req'
instead.

Change-Id: Ie37668859bb6d622b19dc4bff93559e04a4c0d57
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent f275e14b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3307,7 +3307,7 @@ static void mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *new_req)
				 * supported by the card.
				 */
				pr_err("%s: blocked SDR104, lower the bus-speed (SDR50 / DDR50)\n",
					new_req->rq_disk->disk_name);
					old_req->rq_disk->disk_name);
				mmc_host_clear_sdr104(card->host);
				mmc_suspend_clk_scaling(card->host);
				mmc_blk_reset(md, card->host, type);