From: Andres Salomon Date: Tue, 31 Mar 2009 22:25:30 +0000 (-0700) Subject: amifb: check fb_alloc_cmap return value and handle failure properly X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=eb8972b4407f81b07ea6fc71fd91f9fc7a35a81e;p=linux-2.6-omap-h63xx.git amifb: check fb_alloc_cmap return value and handle failure properly Signed-off-by: Andres Salomon Acked-by: Krzysztof Helt Cc: Geert Uytterhoeven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c index 100f2366146..82bedd7f778 100644 --- a/drivers/video/amifb.c +++ b/drivers/video/amifb.c @@ -2437,7 +2437,9 @@ default_chipset: goto amifb_error; } - fb_alloc_cmap(&fb_info.cmap, 1<