aboutsummaryrefslogtreecommitdiff
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorAlan Stern2012-04-11 16:09:10 -0400
committerFelipe Balbi2012-04-12 16:20:10 +0300
commitc85dcdac5852295cf6822f5c4331a6ddab72581f (patch)
tree4ff3f3addfbed73df3e0ff92f9c39cec8e831566 /kernel/audit.c
parent662c738d9946de521dcece2b146dced335242389 (diff)
USB: gadget: storage gadgets send wrong error code for unknown commands
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> CC: <stable@vger.kernel.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'kernel/audit.c')
0 files changed, 0 insertions, 0 deletions