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

Commit 799da323 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: core: fix queue clean up sequence when SD card is removed"

parents 5827cbea cd7dba98
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -182,7 +182,6 @@ static void mmc_blk_put(struct mmc_blk_data *md)
	md->usage--;
	if (md->usage == 0) {
		int devidx = mmc_get_devidx(md->disk);
		blk_cleanup_queue(md->queue.queue);
		ida_simple_remove(&mmc_blk_ida, devidx);
		put_disk(md->disk);
		kfree(md);
+2 −0
Original line number Diff line number Diff line
@@ -507,6 +507,8 @@ void mmc_cleanup_queue(struct mmc_queue *mq)
	blk_start_queue(q);
	spin_unlock_irqrestore(q->queue_lock, flags);

	blk_cleanup_queue(q);

	mq->card = NULL;
}
EXPORT_SYMBOL(mmc_cleanup_queue);