summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2012-04-11 16:09:10 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-07 08:53:23 -0700
commit66a78b37c83ac923a58b886b32b815944c6491b7 (patch)
tree707aa6a3d3d972d32158b779ff3a5471ef98d97e /include
parent1ce9245f5aff46201fa81fdd3f796a6c9f3ad1ab (diff)
downloadlwn-66a78b37c83ac923a58b886b32b815944c6491b7.tar.gz
lwn-66a78b37c83ac923a58b886b32b815944c6491b7.zip
USB: gadget: storage gadgets send wrong error code for unknown commands
commit c85dcdac5852295cf6822f5c4331a6ddab72581f upstream. This patch (as1539) fixes a minor bug in the mass-storage gadget drivers. When an unknown command is received, the error code sent back is "Invalid Field in CDB" rather than "Invalid Command". This is because the bitmask of CDB bytes allowed to be nonzero is incorrect. When handling an unknown command, we don't care which command bytes are nonzero. All the bits in the mask should be set, not just eight of them. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> CC: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions