Re: [PATCH] USB: storage gadgets send wrong error code for unknown commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 11, 2012 at 04:09:10PM -0400, Alan Stern wrote:
> 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@xxxxxxxxxxxxxxxxxxx>
> CC: <Michal Nazarewicz <mina86@xxxxxxxxxx>
> CC: <stable@xxxxxxxxxxxxxxx>

applied, thanks.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux