aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/w100fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/w100fb.c')
-rw-r--r--drivers/video/w100fb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/w100fb.c b/drivers/video/w100fb.c
index 003c49a490eb..30469bf906e5 100644
--- a/drivers/video/w100fb.c
+++ b/drivers/video/w100fb.c
@@ -765,8 +765,10 @@ int __init w100fb_probe(struct platform_device *pdev)
765 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, info->fix.id); 765 printk(KERN_INFO "fb%d: %s frame buffer device\n", info->node, info->fix.id);
766 return 0; 766 return 0;
767out: 767out:
768 fb_dealloc_cmap(&info->cmap); 768 if (info) {
769 kfree(info->pseudo_palette); 769 fb_dealloc_cmap(&info->cmap);
770 kfree(info->pseudo_palette);
771 }
770 if (remapped_fbuf != NULL) 772 if (remapped_fbuf != NULL)
771 iounmap(remapped_fbuf); 773 iounmap(remapped_fbuf);
772 if (remapped_regs != NULL) 774 if (remapped_regs != NULL)