patch-2.4.3 linux/drivers/scsi/qla1280.c
Next file: linux/drivers/scsi/qlogicfc.c
Previous file: linux/drivers/scsi/psi_dale.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Tue Mar 6 19:44:37 2001
- Orig file:
v2.4.2/linux/drivers/scsi/qla1280.c
- Orig date:
Wed Feb 21 18:20:33 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/scsi/qla1280.c linux/drivers/scsi/qla1280.c
@@ -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++)
@@ -1095,7 +1099,7 @@
CMD_HANDLE(cmd) = (unsigned char *)handle;
/* Bookkeeping information */
- sp->r_start = jiffies; /* time the request was recieved */
+ sp->r_start = jiffies; /* time the request was received */
sp->u_start = 0;
/* add the command to our queue */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)