From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 4 May 2001 17:59:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 4 May 2001 17:59:14 -0400 Received: from smtp1.Stanford.EDU ([171.64.14.23]:35276 "EHLO smtp1.Stanford.EDU") by vger.kernel.org with ESMTP id ; Fri, 4 May 2001 17:58:56 -0400 Message-ID: <3AF2C3B3.8C668467@stanford.edu> Date: Fri, 04 May 2001 07:58:59 -0700 From: Christopher Kanaan X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-20mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: kraxel@goldbach.in-berlin.de, torvalds@transmeta.com, linux-kernel@vger.kernel.org Subject: [Patch] sis_main.c Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello, I am a working with Dawson Englers meta compilation group at Stanford. Here is a patch for sis_main.c Basically the patch checks to see if kmalloc returns null. This patch applies to kernel version 2.4.4 Thanks, Christopher Kanaan --- /usr/src/linux/drivers/video/sis/sis_main.c Fri Feb 9 11:30:23 2001 +++ ./sis_main.c Fri May 4 07:34:47 2001 @@ -1030,6 +1030,11 @@ if (heap.pohFreeList == NULL) { poha = kmalloc(OH_ALLOC_SIZE, GFP_KERNEL); + if(!poha) + { + return(NULL); + } + poha->pohaNext = heap.pohaChain; heap.pohaChain = poha;