lkml.org 
[lkml]   [2001]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] drivers/scsi/qlogicisp.c: return code from scsi_register (241p9)
Hi.

The following patch adds a check for scsi_register's return code to
drivers/scsi/qlogicisp.c. It applies cleanly against ac10 and 241p9.

Comments?


--- linux-ac10-clean/drivers/scsi/qlogicisp.c Sat Jan 20 15:17:13 2001
+++ linux-ac10/drivers/scsi/qlogicisp.c Sat Jan 20 23:05:47 2001
@@ -682,6 +682,9 @@
continue;

host = scsi_register(tmpt, sizeof(struct isp1020_hostdata));
+ if (!host)
+ continue;
+
hostdata = (struct isp1020_hostdata *) host->hostdata;

memset(hostdata, 0, sizeof(struct isp1020_hostdata));
--
Regards,
Rasmus(rasmus@jaquet.dk)

If we do not succeed, then we run the risk of failure.
-- Vice President Dan Quayle, to the Phoenix Republican
Forum, March 1990
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.031 / U:7.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site