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-Tag: v2.6.30-rc1~440 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=eb8972b4407f81b07ea6fc71fd91f9fc7a35a81e;p=linux.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 100f23661465..82bedd7f7789 100644 --- a/drivers/video/amifb.c +++ b/drivers/video/amifb.c @@ -2437,7 +2437,9 @@ static int __init amifb_init(void) goto amifb_error; } - fb_alloc_cmap(&fb_info.cmap, 1<