]> git.baikalelectronics.ru Git - kernel.git/commit
USB: less-restrictive command checking in g-file-storage
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 24 Aug 2007 20:27:50 +0000 (16:27 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:20 +0000 (14:55 -0700)
commit3351bab3f561fb96cea24c1e3b544d2fb9f6dbf5
treedfba488bddc80d6366f200796248ce5bdb87d116
parenta108c1669804027f9c07300e136e9dc42be2430b
USB: less-restrictive command checking in g-file-storage

This patch (as983) makes a test for minimum-length command sizes in
g_file_storage less restrictive.  It doesn't matter because commands
with bad lengths will be detected later on anyway, and doing it like
this makes the driver interoperable with certain buggy hosts such as
the JVC HiFi (reported by Samuel Hangouet).

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/file_storage.c