]> git.baikalelectronics.ru Git - kernel.git/commit
Fix USB storage hang on command abort
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 5 Aug 2008 17:05:17 +0000 (13:05 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 5 Aug 2008 17:23:19 +0000 (10:23 -0700)
commit422814f189e376d65f09750017e8d25cb3187f8e
tree7164190a4f25d9b389c6103d41c6bc58b2071648
parentf315af2fc9105496934ade9905c080d361db3845
Fix USB storage hang on command abort

Okay, I found the cause of the hang.  It is a simple bug in the USB
scatter-gather library, caused by changes added in response to the S-G
chaining modification.

This patch (as1125) fixes a bug in the USB scatter-gather library.
Early exit from the S-G initialization loop does not reset the count of
outstanding URBs.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/usb/core/message.c