drivers/scsi/qlogicisp.c: return code from scsi_register (241p9)
PATCH 1/1 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?
drivers/scsi/qlogicisp.c +3 -0
@@ -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 ));
Signature · 10 lines
Regards,
Rasmus([email protected])
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 [email protected]
Please read the FAQ at http://www.tux.org/lkml/