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

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

Merge "mmc: core: Set host->bus_refs properly when card is set as corrupted"

parents 13bbc1f0 e5ac7ee2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -3154,11 +3154,6 @@ void mmc_rescan(struct work_struct *work)
	if (host->bus_ops && !host->bus_dead)
		host->bus_ops->detect(host);

#if defined(CONFIG_SDC_QTI)
	if (host->corrupted_card)
		return;
#endif

	host->detect_change = 0;

	/*
@@ -3180,6 +3175,11 @@ void mmc_rescan(struct work_struct *work)
	 */
	mmc_bus_put(host);

#if defined(CONFIG_SDC_QTI)
	if (host->corrupted_card)
		goto out;
#endif

	mmc_claim_host(host);
	if (mmc_card_is_removable(host) && host->ops->get_cd &&
			host->ops->get_cd(host) == 0) {