fbdev/amifb: Fix double free
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 21 Nov 2011 20:53:53 +0000 (21:53 +0100)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sat, 3 Dec 2011 22:03:31 +0000 (22:03 +0000)
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/amifb.c

index 72454c7381444da7e1d25367d8528a1a99d0c9fa..39d211ad164d35fd33a8a2f8b7812c0dd6f6dcbf 100644 (file)
@@ -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);