Browse Source

OMAP: DSS2: OMAPFB: fix omapfb_free_fbmem()

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>
Tomi Valkeinen 15 years ago
parent
commit
f3a82d11d4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/video/omap2/omapfb/omapfb-main.c

+ 1 - 0
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;
 		}
 	}