From: Tomi Valkeinen Date: Thu, 7 Jan 2010 11:37:30 +0000 (+0200) Subject: OMAP: DSS2: OMAPFB: fix omapfb_free_fbmem() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f3a82d11d478a9eb5ff0cfa83796f0ba8149d841;p=openwrt%2Fstaging%2Fblogic.git OMAP: DSS2: OMAPFB: fix omapfb_free_fbmem() Fixes bug causing VRFB memory area to be released twice. Signed-off-by: Tomi Valkeinen Reported-by: Eino-Ville Talvala --- diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index ef299839858a..e61a75c31358 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -1311,6 +1311,7 @@ static void omapfb_free_fbmem(struct fb_info *fbi) if (rg->vrfb.vaddr[0]) { iounmap(rg->vrfb.vaddr[0]); omap_vrfb_release_ctx(&rg->vrfb); + rg->vrfb.vaddr[0] = NULL; } }