Browse Source

fbdev/amifb: Fix double free

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Geert Uytterhoeven 13 years ago
parent
commit
769ea33145
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/video/amifb.c

+ 0 - 1
drivers/video/amifb.c

@@ -2464,7 +2464,6 @@ static void amifb_deinit(struct platform_device *pdev)
 {
 	if (fb_info.cmap.len)
 		fb_dealloc_cmap(&fb_info.cmap);
-	fb_dealloc_cmap(&fb_info.cmap);
 	chipfree();
 	if (videomemory)
 		iounmap((void *)videomemory);