]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: g_file_storage: ignore bulk-out data after invalid CBW
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 14 Apr 2008 15:45:29 +0000 (11:45 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:52 +0000 (21:16 -0700)
commitb950bdbc67041412cb042e404938667204c7902c
tree6325701be401abd45c60e7f98d253e33ce9b589e
parent9aebfd6bda789891e6d296bb49b5fb32d1057f18
USB: g_file_storage: ignore bulk-out data after invalid CBW

This patch (as1061) makes g_file_storage more compliant with the
Bulk-Only Transport specification.  After an invalid CBW is received,
the gadget must ignore any further bulk-OUT data until it is reset.

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