From: Rasmus Andersen <rasmus@jaquet.dk>
To: vantuyl@csc.smsu.edu, bryon@csc.smsu.edu
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: [PATCH] drivers/scsi/qlogicisp.c: return code from scsi_register (241p9)
Date: Tue, 23 Jan 2001 23:31:55 +0100 [thread overview]
Message-ID: <20010123233155.M607@jaquet.dk> (raw)
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/
reply other threads:[~2001-01-23 22:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010123233155.M607@jaquet.dk \
--to=rasmus@jaquet.dk \
--cc=bryon@csc.smsu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=vantuyl@csc.smsu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox