public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [TRIVIAL] Correct kmalloc check: drivers_scsi_dpt_i2o.c
@ 2003-01-06  3:58 Rusty Trivial Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Trivial Russell @ 2003-01-06  3:58 UTC (permalink / raw)
  To: deanna_bonds, linux-scsi

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [TRIVIAL] Correct kmalloc check: drivers_scsi_dpt_i2o.c
@ 2003-01-14  2:41 Rusty Trivial Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Trivial Russell @ 2003-01-14  2:41 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: deanna_bonds, linux-scsi

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

  Best regards,
          Pablo
  

--- trivial-2.5.57/drivers/scsi/dpt_i2o.c.orig	2003-01-14 12:54:29.000000000 +1100
+++ trivial-2.5.57/drivers/scsi/dpt_i2o.c	2003-01-14 12:54:29.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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [TRIVIAL] Correct kmalloc check: drivers_scsi_dpt_i2o.c
@ 2003-02-06  3:11 Rusty Trivial Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Trivial Russell @ 2003-02-06  3:11 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: deanna_bonds, linux-scsi

(Included in 2.5)
From:  Pablo Menichini <pablo@menichini.com.ar>

  Best regards,
          Pablo
  

--- trivial-2.4.21-pre4/drivers/scsi/dpt_i2o.c.orig	2003-02-06 13:53:50.000000000 +1100
+++ trivial-2.4.21-pre4/drivers/scsi/dpt_i2o.c	2003-02-06 13:53:50.000000000 +1100
@@ -1498,7 +1498,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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-06  3:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-14  2:41 [TRIVIAL] Correct kmalloc check: drivers_scsi_dpt_i2o.c Rusty Trivial Russell
  -- strict thread matches above, loose matches on Subject: below --
2003-02-06  3:11 Rusty Trivial Russell
2003-01-06  3:58 Rusty Trivial Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox