Hello,

At Thu, 21 Jun 2001 08:15:10,
Trevor Hemsley wrote:
> 
> On Thu, 21 Jun 2001 03:05:02, "Jeff V. Merkey" 
> <[EMAIL PROTECTED]> wrote:
> 
> > Ditto.  I am also seeing this oops calling the sg driver for a 
> > robotic tape library, and it also seems to happen on 2.4.4.
> 
> In my case it appears that it was the symptom of severe bus problems. 
> About 5 minutes after I posted the initial report I discovered that 
> the cable from the back of the Nikon to the MO drive had fallen off so
> the bus was running unterminated. Replugging it fixed teh bus error 
> and the oops. 
> 
> Looks like error handling is all fscked up...
> 

  I saw this oops too. The following patch is working for me, but I don't
know this is a correct fix.


diff -r -N -u linux.org/drivers/scsi/aic7xxx/aic7xxx_linux.c 
linux/drivers/scsi/aic7xxx/aic7xxx_linux.c
--- linux.org/drivers/scsi/aic7xxx/aic7xxx_linux.c      Fri Mar 16 13:47:01 2001
+++ linux/drivers/scsi/aic7xxx/aic7xxx_linux.c  Fri Mar 16 13:54:34 2001
@@ -1872,7 +1872,9 @@
                break;
         case AC_BUS_RESET:
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0)
-               scsi_report_bus_reset(ahc->platform_data->host, channel - 'A');
+               if (ahc->platform_data->host) {
+                       scsi_report_bus_reset(ahc->platform_data->host, channel - 'A');
+               }
 #endif
                 break;
         default:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to