aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/amifb.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2011-11-21 15:53:53 -0500
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-12-03 17:03:31 -0500
commit769ea33145b5f4c1f0d07e1d4db0121c4b98f81f (patch)
tree1404fc1fa476ffe2d520327f440ee6919745b982 /drivers/video/amifb.c
parentf0058b4bb0630f7d1bf10e8fc3f8784af2fc96e1 (diff)
fbdev/amifb: Fix double free
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/amifb.c')
-rw-r--r--drivers/video/amifb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c
index 72454c738144..39d211ad164d 100644
--- a/drivers/video/amifb.c
+++ b/drivers/video/amifb.c
@@ -2464,7 +2464,6 @@ static void amifb_deinit(struct platform_device *pdev)
2464{ 2464{
2465 if (fb_info.cmap.len) 2465 if (fb_info.cmap.len)
2466 fb_dealloc_cmap(&fb_info.cmap); 2466 fb_dealloc_cmap(&fb_info.cmap);
2467 fb_dealloc_cmap(&fb_info.cmap);
2468 chipfree(); 2467 chipfree();
2469 if (videomemory) 2468 if (videomemory)
2470 iounmap((void *)videomemory); 2469 iounmap((void *)videomemory);