patch-2.4.22 linux-2.4.22/drivers/scsi/gdth.c

Next file: linux-2.4.22/drivers/scsi/ide-scsi.c
Previous file: linux-2.4.22/drivers/scsi/dec_esp.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/scsi/gdth.c linux-2.4.22/drivers/scsi/gdth.c
@@ -4029,6 +4029,8 @@
             break;
         if (gdth_search_isa(isa_bios)) {        /* controller found */
             shp = scsi_register(shtp,sizeof(gdth_ext_str));
+            if(shp == NULL)
+            	continue;
             ha = HADATA(shp);
             if (!gdth_init_isa(isa_bios,ha)) {
                 scsi_unregister(shp);

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