From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andres Salomon Subject: [PATCH 14/15] amifb: check fb_alloc_cmap return value and handle failure properly Date: Sat, 7 Feb 2009 12:18:57 -0500 Message-ID: <20090207121857.6bc5d5bc@ephemeral> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124] helo=mx.sourceforge.net) by h25xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LVqpZ-0001Lc-9L for linux-fbdev-devel@lists.sourceforge.net; Sat, 07 Feb 2009 17:19:01 +0000 Received: from lunge.mit.edu ([18.54.1.69] helo=lunge.queued.net) by 1b2kzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1LVqpX-0004zA-Ts for linux-fbdev-devel@lists.sourceforge.net; Sat, 07 Feb 2009 17:19:01 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Andrew Morton Cc: linux-fbdev-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, adaplas@gmail.com Signed-off-by: Andres Salomon --- drivers/video/amifb.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c index 100f236..82bedd7 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<