diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-08-05 10:46:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-20 11:05:14 -0700 |
commit | 978e8c75a78d16d933dfa471fa247e7e61c9f7a4 (patch) | |
tree | 6b9448aedb68db6f0d0f3af790f6ba796afcc6a6 /net/unix/sysctl_net_unix.c | |
parent | b0d87b9307f9e4b5803a3cad3ad00bee4beb1966 (diff) |
usb-storage: automatically recognize bad residues
commit 59f4ff2ecff4cef36378928cec891785b402e80c upstream
This patch (as1119b) will help to reduce the clutter of usb-storage's
unusual_devs file by automatically detecting some devices that need
the IGNORE_RESIDUE flag. The idea is that devices should never return
a non-zero residue for an INQUIRY or a READ CAPACITY command unless
they failed to transfer all the requested data. So if one of these
commands transfers a standard amount of data but there is a positive
residue, we know that the residue is bogus and we can set the flag.
This fixes the problems reported in Bugzilla #11125.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Matthew Frost <artusemrys@sbcglobal.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions