aboutsummaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2012-04-11 16:09:10 -0400
committerBen Hutchings <ben@decadent.org.uk>2012-05-11 13:14:42 +0100
commit4c3fbeafa241fbead0d8724c3d5ea9da96151a74 (patch)
treef357949c67381a0dd041dff7f2d3ad35c9d8a532 /ipc
parentf845dfabaf943e9d1bd97c1c023ee5c58ba04352 (diff)
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: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions