patch-2.4.20 linux-2.4.20/drivers/usb/storage/scsiglue.c
Next file: linux-2.4.20/drivers/usb/storage/sddr55.c
Previous file: linux-2.4.20/drivers/usb/storage/freecom.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu Nov 28 15:53:15 2002
-  Orig file: 
linux-2.4.19/drivers/usb/storage/scsiglue.c
-  Orig date: 
Sun Nov 11 10:01:32 2001
diff -urN linux-2.4.19/drivers/usb/storage/scsiglue.c linux-2.4.20/drivers/usb/storage/scsiglue.c
@@ -190,7 +190,7 @@
 	}
 
 	/* if we have an urb pending, let's wake the control thread up */
-	if (us->current_urb->status == -EINPROGRESS) {
+	if (!us->current_done.done) {
 		/* cancel the URB -- this will automatically wake the thread */
 		usb_unlink_urb(us->current_urb);
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)