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

Next file: linux/drivers/scsi/aha1740.c
Previous file: linux/drivers/scsi/aha152x.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/drivers/scsi/aha1542.c linux/drivers/scsi/aha1542.c
@@ -1154,6 +1154,8 @@
 			shpnt = scsi_register(tpnt,
 					sizeof(struct aha1542_hostdata));
 
+			if(shpnt==NULL)
+				continue;
 			/* For now we do this - until kmalloc is more intelligent
 			   we are resigned to stupid hacks like this */
 			if (SCSI_PA(shpnt) >= ISA_DMA_THRESHOLD) {

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