public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [TRIVIAL] [Trivial Patch] scsi_register-002
@ 2003-02-06  3:11 Rusty Trivial Russell
  0 siblings, 0 replies; 6+ messages in thread
From: Rusty Trivial Russell @ 2003-02-06  3:11 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: linux-scsi

(Included in 2.5)
From:  Michael Still <mikal@stillhq.com>

  
  This patch has been generated as part of my scsi_register audit of the 2.5.45 kernel tree. scsi_register() can fail, returning a NULL pointer, and the failure case was not being handled here...
  
  
  
  

--- trivial-2.4.21-pre4/drivers/scsi/aacraid/linit.c.orig	2003-02-06 13:53:49.000000000 +1100
+++ trivial-2.4.21-pre4/drivers/scsi/aacraid/linit.c	2003-02-06 13:53:49.000000000 +1100
@@ -203,6 +203,9 @@
 			 * specific information.
 			 */
 			host_ptr = scsi_register( template, sizeof(struct aac_dev) );
+			if(host_ptr == NULL)
+				continue;
+
 			/* 
 			 * These three parameters can be used to allow for wide SCSI 
 			 * and for host adapters that support multiple buses.
-- 
  Don't blame me: the Monkey is driving
  File: Michael Still <mikal@stillhq.com>: [Trivial Patch] scsi_register-002

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [TRIVIAL] [Trivial Patch] scsi_register-002
@ 2003-06-23  6:56 Rusty Trivial Russell
  2003-06-23 14:17 ` Alan Cox
  0 siblings, 1 reply; 6+ messages in thread
From: Rusty Trivial Russell @ 2003-06-23  6:56 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: aacraid, linux-scsi

(Included in 2.5)
From:  Michael Still <mikal@stillhq.com>

  
  This patch has been generated as part of my scsi_register audit of the 2.5.45 kernel tree. scsi_register() can fail, returning a NULL pointer, and the failure case was not being handled here...
  
  
  
  

--- trivial-2.4.22-pre1/drivers/scsi/aacraid/linit.c.orig	2003-06-23 16:39:34.000000000 +1000
+++ trivial-2.4.22-pre1/drivers/scsi/aacraid/linit.c	2003-06-23 16:39:34.000000000 +1000
@@ -203,6 +203,9 @@
 			 * specific information.
 			 */
 			host_ptr = scsi_register( template, sizeof(struct aac_dev) );
+			if(host_ptr == NULL)
+				continue;
+
 			/* 
 			 * These three parameters can be used to allow for wide SCSI 
 			 * and for host adapters that support multiple buses.
-- 
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: Michael Still <mikal@stillhq.com>: [Trivial Patch] scsi_register-002

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [TRIVIAL] [Trivial Patch] scsi_register-002
@ 2002-12-16 10:39 Rusty Trivial Russell
  0 siblings, 0 replies; 6+ messages in thread
From: Rusty Trivial Russell @ 2002-12-16 10:39 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: linux-scsi

(Included in 2.5)
From:  Michael Still <mikal@stillhq.com>

  
  This patch has been generated as part of my scsi_register audit of the 2.5.45 kernel tree. scsi_register() can fail, returning a NULL pointer, and the failure case was not being handled here...
  
  
  
  

--- trivial-2.4.21-pre1/drivers/scsi/aacraid/linit.c.orig	2002-12-16 17:22:28.000000000 +1100
+++ trivial-2.4.21-pre1/drivers/scsi/aacraid/linit.c	2002-12-16 17:22:28.000000000 +1100
@@ -203,6 +203,9 @@
 			 * specific information.
 			 */
 			host_ptr = scsi_register( template, sizeof(struct aac_dev) );
+			if(host_ptr == NULL)
+				continue;
+
 			/* 
 			 * These three parameters can be used to allow for wide SCSI 
 			 * and for host adapters that support multiple buses.
-- 
  Don't blame me: the Monkey is driving
  File: Michael Still <mikal@stillhq.com>: [Trivial Patch] scsi_register-002

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [TRIVIAL] [Trivial Patch] scsi_register-002
@ 2002-11-08  8:25 Rusty Trivial Russell
  0 siblings, 0 replies; 6+ messages in thread
From: Rusty Trivial Russell @ 2002-11-08  8:25 UTC (permalink / raw)
  To: linux-scsi, alan

From:  Michael Still <mikal@stillhq.com>

  
  This patch has been generated as part of my scsi_register audit of the 2.5.45 kernel tree. scsi_register() can fail, returning a NULL pointer, and the failure case was not being handled here...
  
  
  
  

--- trivial-2.5-bk/drivers/scsi/aacraid/linit.c.orig	2002-11-08 18:47:02.000000000 +1100
+++ trivial-2.5-bk/drivers/scsi/aacraid/linit.c	2002-11-08 18:47:02.000000000 +1100
@@ -204,6 +204,9 @@
 			 * specific information.
 			 */
 			host_ptr = scsi_register( template, sizeof(struct aac_dev) );
+			if(host_ptr == NULL)
+				continue;
+
 			/* 
 			 * These three parameters can be used to allow for wide SCSI 
 			 * and for host adapters that support multiple buses.
-- 
  Don't blame me: the Monkey is driving
  File: Michael Still <mikal@stillhq.com>: [Trivial Patch] scsi_register-002

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

end of thread, other threads:[~2003-06-23 23:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-06  3:11 [TRIVIAL] [Trivial Patch] scsi_register-002 Rusty Trivial Russell
  -- strict thread matches above, loose matches on Subject: below --
2003-06-23  6:56 Rusty Trivial Russell
2003-06-23 14:17 ` Alan Cox
2003-06-23 15:42   ` Rusty Russell
2002-12-16 10:39 Rusty Trivial Russell
2002-11-08  8:25 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