patch-2.4.0-test11 linux/drivers/scsi/3w-xxxx.c
Next file: linux/drivers/scsi/53c7xx.c
Previous file: linux/drivers/sbus/sbus.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Wed Nov 8 17:09:50 2000
- Orig file:
v2.4.0-test10/linux/drivers/scsi/3w-xxxx.c
- Orig date:
Sun Oct 8 10:50:21 2000
diff -u --recursive --new-file v2.4.0-test10/linux/drivers/scsi/3w-xxxx.c linux/drivers/scsi/3w-xxxx.c
@@ -696,8 +696,13 @@
/* Register the card with the kernel SCSI layer */
host = scsi_register(tw_host, sizeof(TW_Device_Extension));
-
- /* FIXME - check for NULL */
+ if( host == NULL)
+ {
+ release_region((tw_dev->tw_pci_dev->resource[0].start), TW_IO_ADDRESS_RANGE);
+ tw_free_device_extension(tw_dev);
+ kfree(tw_dev);
+ continue;
+ }
status_reg_value = inl(tw_dev->registers.status_reg_addr);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)