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: https://git.stricted.de/?a=commitdiff_plain;h=eb8972b4407f81b07ea6fc71fd91f9fc7a35a81e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 @@ default_chipset: goto amifb_error; } - fb_alloc_cmap(&fb_info.cmap, 1<