patch-pre2.0.9 linux/drivers/scsi/scsi_ioctl.c

Next file: linux/fs/isofs/util.c
Previous file: linux/drivers/scsi/scsi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.8/linux/drivers/scsi/scsi_ioctl.c linux/drivers/scsi/scsi_ioctl.c
@@ -150,7 +150,7 @@
     result = SCpnt->result;
     SCpnt->request.rq_status = RQ_INACTIVE;
 
-    if(SCpnt->device->scsi_request_fn)
+    if (!SCpnt->device->was_reset && SCpnt->device->scsi_request_fn)
 	(*SCpnt->device->scsi_request_fn)();
 
     wake_up(&SCpnt->device->device_wait);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this