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

Commit 0111390d authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: core: Set SDCard as removed upon recovery failure"

parents 15571875 1622ed4b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1889,6 +1889,8 @@ static void mmc_blk_mq_rw_recovery(struct mmc_queue *mq, struct request *req)
	    err && mmc_blk_reset(md, card->host, type)) {
		pr_err("%s: recovery failed!\n", req->rq_disk->disk_name);
		mqrq->retries = MMC_NO_RETRIES;
		if (mmc_card_sd(card))
			mmc_card_set_removed(card);
		return;
	}