From: Al Viro Date: Mon, 2 Jun 2008 09:59:02 +0000 (+0100) Subject: cdc-wdm endianness fixes X-Git-Tag: v2.6.26-rc5~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa4144b758d58341d4e082ac2af259e97fbcbeee;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed