On Thu, Jan 25, 2001 at 11:15:50AM -0800, rakesh rakesh wrote:
> I think it will be more appropriate to add a printk
> statement,just to be more informative.
You are right. Patch as follows:
--- linux-ac11-clean/drivers/scsi/qla1280.c Wed Dec 6 21:06:18 2000
+++ linux-ac11/drivers/scsi/qla1280.c Thu Jan 25 21:16:26 2001
@@ -810,6 +810,10 @@
#endif
/* found a adapter */
host = scsi_register(template, sizeof(scsi_qla_host_t));
+ if (!host) {
+ printk(KERN_WARNING "qla1280: Failed to register host,
+aborting.\n");
+ return 0;
+ }
ha = (scsi_qla_host_t *) host->hostdata;
/* Clear our data area */
for( j =0, cp = (char *)ha; j < sizeof(scsi_qla_host_t); j++)
--
Regards,
Rasmus([EMAIL PROTECTED])
Genius may have its limitations, but stupidity is not thus handicapped.
-- Elbert Hubbard
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]