summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorBalaji T K <balajitk@ti.com>2012-10-15 18:05:07 +0200
committerChris Ball <cjb@laptop.org>2012-11-07 20:55:31 +0100
commit9d1f02864408c20dbbfaa661231c7afb5a8fc028 (patch)
tree818eef937a9cd4e7386f43d98395e052e594768b /drivers/mmc/host
parentmmc: dw_mmc: fix multiple drv_data NULL dereferences (diff)
downloadlinux-9d1f02864408c20dbbfaa661231c7afb5a8fc028.tar.xz
linux-9d1f02864408c20dbbfaa661231c7afb5a8fc028.zip
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 <balajitk@ti.com> Signed-off-by: Venkatraman S <svenkatr@ti.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/omap_hsmmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 54bfd0cc106b..d5057415d7d9 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);