diff options
author | Balaji T K <balajitk@ti.com> | 2012-10-15 12:05:07 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-11-07 14:55:31 -0500 |
commit | 9d1f02864408c20dbbfaa661231c7afb5a8fc028 (patch) | |
tree | 818eef937a9cd4e7386f43d98395e052e594768b /drivers | |
parent | cb27a843de9e3a0a2e4b7e631da4679d38f49cee (diff) |
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')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 2 |
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) | |||
2009 | clk_put(host->dbclk); | 2009 | clk_put(host->dbclk); |
2010 | } | 2010 | } |
2011 | 2011 | ||
2012 | mmc_free_host(host->mmc); | ||
2013 | iounmap(host->base); | 2012 | iounmap(host->base); |
2013 | mmc_free_host(host->mmc); | ||
2014 | omap_hsmmc_gpio_free(pdev->dev.platform_data); | 2014 | omap_hsmmc_gpio_free(pdev->dev.platform_data); |
2015 | 2015 | ||
2016 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 2016 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |