patch-2.4.0-test11 linux/drivers/scsi/wd7000.c

Next file: linux/drivers/sound/724hwmcode.h
Previous file: linux/drivers/scsi/t128.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/drivers/scsi/wd7000.c linux/drivers/scsi/wd7000.c
@@ -1626,6 +1626,8 @@
 		 *  array hostdata.
 		 */
 		sh = scsi_register (tpnt, sizeof (Adapter));
+		if(sh==NULL)
+			continue;
 		host = (Adapter *) sh->hostdata;
 
 #ifdef WD7000_DEBUG

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)