public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Trivial Russell <rusty@rustcorp.com.au>
To: deanna_bonds@adaptec.com, linux-scsi@vger.kernel.org
Subject: [TRIVIAL] Correct kmalloc check: drivers_scsi_dpt_i2o.c
Date: Mon, 06 Jan 2003 14:58:03 +1100	[thread overview]
Message-ID: <20030106041152.AFA7F2C2BE@lists.samba.org> (raw)

From:  Pablo Menichini <pablo@menichini.com.ar>

  Best regards,
          Pablo
  

--- trivial-2.5-bk/drivers/scsi/dpt_i2o.c.orig	2003-01-06 14:10:56.000000000 +1100
+++ trivial-2.5-bk/drivers/scsi/dpt_i2o.c	2003-01-06 14:10:56.000000000 +1100
@@ -1491,7 +1491,7 @@
 							pDev->next_lun; pDev = pDev->next_lun){
 					}
 					pDev->next_lun = kmalloc(sizeof(struct adpt_device),GFP_KERNEL);
-					if(pDev == NULL) {
+					if(pDev->next_lun == NULL) {
 						return -ENOMEM;
 					}
 					memset(pDev->next_lun,0,sizeof(struct adpt_device));
-- 
  Don't blame me: the Monkey is driving
  File: Pablo Menichini <pablo@menichini.com.ar>: [PATCH][2.5.53] Correct kmalloc check: drivers_scsi_dpt_i2o.c

             reply	other threads:[~2003-01-06  3:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-06  3:58 Rusty Trivial Russell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-14  2:41 [TRIVIAL] Correct kmalloc check: drivers_scsi_dpt_i2o.c Rusty Trivial Russell
2003-02-06  3:11 Rusty Trivial Russell

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=20030106041152.AFA7F2C2BE@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=deanna_bonds@adaptec.com \
    --cc=linux-scsi@vger.kernel.org \
    /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