This patch fixes the case of an ABORT happening during the auto-sense processing when using the ISD-200 driver.
Greg, please apply.
Matt
# This is a BitKeeper generated patch for the following project:
# Project Name: greg k-h's linux 2.5 USB kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.647 -> 1.648
# drivers/usb/storage/isd200.c 1.26 -> 1.27
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/11/09 [EMAIL PROTECTED] 1.648
# Fix the case of an abort happening during a REQUEST_SENSE processing.
# --------------------------------------------
#
diff -Nru a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c
--- a/drivers/usb/storage/isd200.c Sun Nov 10 17:49:57 2002
+++ b/drivers/usb/storage/isd200.c Sun Nov 10 17:49:57 2002
@@ -589,7 +589,9 @@
if (atomic_read(&us->sm_state) == US_STATE_ABORTING) {
US_DEBUGP("-- auto-sense aborted\n");
srb->result = DID_ABORT << 16;
- } else if (result == ISD200_GOOD) {
+ return;
+ }
+ if (result == ISD200_GOOD) {
isd200_build_sense(us, srb);
srb->result = CHECK_CONDITION << 1;
--
Matthew Dharm Home: [EMAIL PROTECTED]
Maintainer, Linux USB Mass Storage Driver
Somebody call an exorcist!
-- Dust Puppy
User Friendly, 5/16/1998
msg09328/pgp00000.pgp
Description: PGP signature
