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< Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755838AbZBGRTn (ORCPT ); Sat, 7 Feb 2009 12:19:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753173AbZBGRTE (ORCPT ); Sat, 7 Feb 2009 12:19:04 -0500 Received: from LUNGE.MIT.EDU ([18.54.1.69]:43435 "EHLO lunge.queued.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755409AbZBGRTA (ORCPT ); Sat, 7 Feb 2009 12:19:00 -0500 Date: Sat, 7 Feb 2009 12:18:57 -0500 From: Andres Salomon To: Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-fbdev-devel@lists.sourceforge.net, adaplas@gmail.com Subject: [PATCH 14/15] amifb: check fb_alloc_cmap return value and handle failure properly Message-ID: <20090207121857.6bc5d5bc@ephemeral> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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<