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

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

Merge "mmc: core: Make host->card as NULL when card is removed"

parents a2d0aa00 98ecf616
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -275,12 +275,15 @@ EXPORT_SYMBOL(mmc_unregister_driver);
static void mmc_release_card(struct device *dev)
{
	struct mmc_card *card = mmc_dev_to_card(dev);
	struct mmc_host *host = card->host;

	sdio_free_common_cis(card);

	kfree(card->info);

	kfree(card);
	if (host)
		host->card = NULL;
}

/*