OMAP: DSS2: OMAPFB: fix omapfb_free_fbmem()
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Thu, 7 Jan 2010 11:37:30 +0000 (13:37 +0200)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Mon, 11 Jan 2010 12:45:26 +0000 (14:45 +0200)
Fixes bug causing VRFB memory area to be released twice.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Reported-by: Eino-Ville Talvala <talvala@stanford.edu>
drivers/video/omap2/omapfb/omapfb-main.c

index ef29983..e61a75c 100644 (file)
@@ -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;
                }
        }