Hi.

The following patch makes drivers/scsi/gdth.c check the return code
of scsi_allocate_device(). It applies against 246ac5 and was
raised in a posting from the Stanford team a while ago.


--- linux-246-ac5-clean/drivers/scsi/gdth.c     Wed Jun 20 20:19:02 2001
+++ linux-246-ac5/drivers/scsi/gdth.c   Tue Jul 17 23:05:32 2001
@@ -4516,6 +4516,8 @@
 #if LINUX_VERSION_CODE >= 0x020322
     sdev = scsi_get_host_dev(gdth_ctr_tab[hanum]);
     scp  = scsi_allocate_device(sdev, 1, FALSE);
+    if (!scp)
+           return;
     scp->cmd_len = 12;
     scp->use_sg = 0;
 #else
-- 
Regards,
        Rasmus([EMAIL PROTECTED])

     "One Code to rule them all, one Code to bind them
       In the land of Redmond where the Shadows lie."
      - Joe Thompson in ASR, with apologies to Tolkien
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to