]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cdc_ncm: fix endianness problem.
authorGiuseppe Scrivano <giuseppe@southpole.se>
Wed, 3 Aug 2011 22:10:29 +0000 (22:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:48 +0000 (11:40 -0700)
commitf85eb4c9c9c9016da4e43d86f8fc29267798eab7
tree02a6c173a8a4202600fdd7570c4c5c5f4a2180ce
parent90278ca93cd14c1d9d1d360d333d78f0258616ab
cdc_ncm: fix endianness problem.

commit 36c35416a94f5632c3addad05217ff02c39b3b61 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/usb/cdc_ncm.c