Home
last modified time | relevance | path

Searched hist:fa4144b7 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/class/
H A Dcdc-wdm.cfa4144b7 Mon Jun 02 04:59:02 CDT 2008 Al Viro <viro@ftp.linux.org.uk> cdc-wdm endianness fixes

* wMaxPacketSize is le16; copying it to a field of local structure and then
using that field as host-endian (size of object to be allocated) is broken.
* bMaxPacketSize0 is 8-bit; feeding it to le16_to_cpu() is bogus and since the
result is used as host-endian, it's not even misspelled cpu_to_le16().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fa4144b7 Mon Jun 02 04:59:02 CDT 2008 Al Viro <viro@ftp.linux.org.uk> cdc-wdm endianness fixes

* wMaxPacketSize is le16; copying it to a field of local structure and then
using that field as host-endian (size of object to be allocated) is broken.
* bMaxPacketSize0 is 8-bit; feeding it to le16_to_cpu() is bogus and since the
result is used as host-endian, it's not even misspelled cpu_to_le16().

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>