linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christopher Kanaan <kanaan@stanford.edu>
To: kraxel@goldbach.in-berlin.de, torvalds@transmeta.com,
	linux-kernel@vger.kernel.org
Subject: [Patch] sis_main.c
Date: Fri, 04 May 2001 07:58:59 -0700	[thread overview]
Message-ID: <3AF2C3B3.8C668467@stanford.edu> (raw)

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;

             reply	other threads:[~2001-05-04 21:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-04 14:58 Christopher Kanaan [this message]
2001-05-04 22:07 ` [Patch] sis_main.c David Weinehall
2001-05-04 15:21 Christopher Kanaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AF2C3B3.8C668467@stanford.edu \
    --to=kanaan@stanford.edu \
    --cc=kraxel@goldbach.in-berlin.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).