All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/scsi/qlogicisp.c: return code from scsi_register (241p9)
@ 2001-01-23 22:31 Rasmus Andersen
  0 siblings, 0 replies; only message in thread
From: Rasmus Andersen @ 2001-01-23 22:31 UTC (permalink / raw)
  To: vantuyl, bryon; +Cc: linux-kernel, linux-scsi

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-01-23 22:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-23 22:31 [PATCH] drivers/scsi/qlogicisp.c: return code from scsi_register (241p9) Rasmus Andersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.