patch-2.4.21 linux-2.4.21/drivers/usb/storage/jumpshot.c
Next file: linux-2.4.21/drivers/usb/storage/scsiglue.c
Previous file: linux-2.4.21/drivers/usb/storage/isd200.c
Back to the patch index
Back to the overall index
-  Lines: 20
-  Date:
2003-06-13 07:51:37.000000000 -0700
-  Orig file: 
linux-2.4.20/drivers/usb/storage/jumpshot.c
-  Orig date: 
2002-08-02 17:39:45.000000000 -0700
diff -urN linux-2.4.20/drivers/usb/storage/jumpshot.c linux-2.4.21/drivers/usb/storage/jumpshot.c
@@ -132,7 +132,7 @@
 
 	if (result < 0) {
 		/* if the command was aborted, indicate that */
-		if (result == -ENOENT)
+		if (result == -ECONNRESET)
 			return USB_STOR_TRANSPORT_ABORTED;
 
 		/* a stall is a fatal condition from the device */
@@ -181,8 +181,8 @@
 			return US_BULK_TRANSFER_FAILED;
 		}
 
-		// -ENOENT -- we canceled this transfer
-		if (result == -ENOENT) {
+		// -ECONNRESET -- we canceled this transfer
+		if (result == -ECONNRESET) {
 			US_DEBUGP("jumpshot_raw_bulk:  transfer aborted\n");
 			return US_BULK_TRANSFER_ABORTED;
 		}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)