]> git.baikalelectronics.ru Git - kernel.git/commit
usb/storage: remove Filler member from struct bulk_cs_wrap
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sat, 25 Feb 2012 17:28:12 +0000 (18:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Feb 2012 19:11:22 +0000 (11:11 -0800)
commit56f64800c82745d5e9c9ba159256793eeb4fc2f7
tree8066acecc2e0e99295d40f2867f695c53d484c3d
parentce02ba9b37f116e59f80caad6939355a80f2ca66
usb/storage: remove Filler member from struct bulk_cs_wrap

As Alan Stern pointed out this member has nothing to do with the Command
Status Wrapper (CSW) as specified by the Universal Serial Bus Mass
Storage Class Bulk-Only Transport rev 1.0. It defines the structure
without the additional 18 filler bytes and defines the total size of the
struct to exactly 13 bytes. Larger responses should be dropped. All
in-tree users use a defines instead of sizeof() of this struct as far I
can tell.

Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/usb/storage.h