commit | 3d42b8a6604da814f24be30f16c313a517e0f127 | [log] [tgz] |
---|---|---|
author | Kim B. Heino <Kim.Heino@bluegiga.com> | Fri Mar 12 10:07:00 2010 +0200 |
committer | Remy Bohmer <linux@bohmer.net> | Thu Apr 08 21:40:00 2010 +0200 |
tree | 185f85830abc80e6d6e15fabdab23dbd60260a3e | |
parent | 300ea51863314faf30c64ad131878a6895a88b94 [diff] |
USB storage probe While debugging one ill behaving USB device I found two bugs in USB storage probe. usb_stor_get_info() returns -1 (error), 0 (skip) or 1 (ok). First part of this patch fixes error case. Second part fixes usb_inquiry()'s retry counter handling. Original code had retry = -1 on error case, not retry = 0 as checked in the next line. Signed-off-by: Kim B. Heino <Kim.Heino@bluegiga.com>