diff options
| author | Matthew Dharm <mdharm-usb@one-eyed-alien.net> | 2002-11-10 21:13:16 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2002-11-10 21:13:16 -0800 |
| commit | e3797403ba80f56b3666ced7789dd728fc13eec0 (patch) | |
| tree | 7f9d691af78015b00d4dfd4171976c3091b3e258 | |
| parent | 7867bebb138686cfacd2e729415be196833f7c96 (diff) | |
[PATCH] usb storage: fix aborted auto-sense
This patch fixes the case of an ABORT happening during the auto-sense
processing when using the ISD-200 driver.
| -rw-r--r-- | drivers/usb/storage/isd200.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/storage/isd200.c b/drivers/usb/storage/isd200.c index 6090e1064c67..32c5474b6585 100644 --- a/drivers/usb/storage/isd200.c +++ b/drivers/usb/storage/isd200.c @@ -589,7 +589,9 @@ void isd200_invoke_transport( struct us_data *us, 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; |
