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

Next file: linux/drivers/scsi/fdomain.c
Previous file: linux/drivers/scsi/esp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/drivers/scsi/fcal.c linux/drivers/scsi/fcal.c
@@ -128,7 +128,11 @@
 		if (!ages) continue;
 				
 		host = scsi_register (tpnt, sizeof (struct fcal));
-		if (!host) panic ("Cannot register FCAL host\n");
+		if (!host) 
+		{
+			kfree(ages);
+			continue;
+		}
 				
 		nfcals++;
 				

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