diff options
| author | Alan Stern <stern@rowland.harvard.edu> | 2004-05-11 01:33:09 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-05-11 01:33:09 -0700 |
| commit | 23601558f3956c8e4c7b085932018c9adcdd49db (patch) | |
| tree | 37c97faa42f6731e73389c8c973d5e2f0deb68d9 /include | |
| parent | c0e1607acfab3b28b8834eb00a8ac42c7800c7e0 (diff) | |
[PATCH] USB Gadget: Fix file-storage gadget Request Sense length
On Fri, 7 May 2004, kernel@metro.cx wrote:
> Hi All,
>
> I don't know where else to report this, but I found a very very very
> minor bug in the usb gadgets drivers, specifically the file_storage.c
> mass storage driver.
>
> In the function do_request_sense(..) it says:
>
> buf[7] = 18 - 7; // Additional sense length
>
> Whereas (according to page 38 of the USB mass storage class, UFI command spec,
> http://www.usb.org/developers/devclass_docs#approved) this clearly neads
> to be equal to 10, not 11.
>
> I checked with the 2.6.5 source, it is still there. Hope someone will find this usefull, although most USB hosts seem to ignore length bits alltogether anyway....
>
> Koen Martens
You are quite right; thank you for pointing this out. Greg, please apply
the patch below.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
