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 ef299839858aa5b87c4826fdd1bd36127c5072d1..e61a75c3135837a9323c02971317266fb5d15049 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;
                }
        }