From: Balaji T K Date: Mon, 15 Oct 2012 16:05:07 +0000 (+0530) Subject: mmc: omap_hsmmc: fix host reference after mmc_free_host X-Git-Tag: v3.7-rc5~8^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d1f02864408c20dbbfaa661231c7afb5a8fc028;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git mmc: omap_hsmmc: fix host reference after mmc_free_host struct omap_hsmmc_host *host should not be accessed after mmc_free_host(). Reorder mmc_free_host() after iounmap(host->base). Signed-off-by: Balaji T K Signed-off-by: Venkatraman S Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 54bfd0c..d5057415 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -2009,8 +2009,8 @@ static int __devexit omap_hsmmc_remove(struct platform_device *pdev) clk_put(host->dbclk); } - mmc_free_host(host->mmc); iounmap(host->base); + mmc_free_host(host->mmc); omap_hsmmc_gpio_free(pdev->dev.platform_data); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);