]> git.baikalelectronics.ru Git - kernel.git/commit
cdc_ncm: fix endianness problem.
authorGiuseppe Scrivano <giuseppe@southpole.se>
Wed, 3 Aug 2011 22:10:29 +0000 (22:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Aug 2011 08:43:30 +0000 (01:43 -0700)
commit1096f0f25f148690fbeeca4f4bb92bcc6cf3b71e
treecd62778aeb57b3958228e2cd325d18fd1cd1cc35
parente19e5ca2f25d4faf7b79032b28ab511d73d8ff69
cdc_ncm: fix endianness problem.

Fix a misusage of the struct usb_cdc_notification to pass arguments to the
usb_control_msg function.  The usb_control_msg function expects host endian
arguments but usb_cdc_notification stores these values as little endian.

Now usb_control_msg is directly invoked with host endian values.

Signed-off-by: Giuseppe Scrivano <giuseppe@southpole.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c