summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Chang2011-05-12 12:31:11 +0200
committerGreg Kroah-Hartman2011-05-17 20:37:13 +0200
commitcacd18a8476ce145ca5dcd46dc5b75585fd1289c (patch)
tree0c4d71aa3b3ebd62239bad7ef94f6059390216ea
parentiio: adc: ad7780: Add missing GPIOLIB dependency (diff)
downloadkernel-qcow2-linux-cacd18a8476ce145ca5dcd46dc5b75585fd1289c.tar.gz
kernel-qcow2-linux-cacd18a8476ce145ca5dcd46dc5b75585fd1289c.tar.xz
kernel-qcow2-linux-cacd18a8476ce145ca5dcd46dc5b75585fd1289c.zip
staging: usbip: fix wrong endian conversion
Fix number_of_packets wrong endian conversion in function correct_endian_ret_submit() Signed-off-by: David Chang <dchang@novell.com> Acked-by: Arjan Mels <arjan.mels@gmx.net> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/usbip/usbip_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c
index 0f2cd977ca2a..68f51068abf1 100644
--- a/drivers/staging/usbip/usbip_common.c
+++ b/drivers/staging/usbip/usbip_common.c
@@ -589,7 +589,7 @@ static void correct_endian_ret_submit(struct usbip_header_ret_submit *pdu,
be32_to_cpus(&pdu->status);
be32_to_cpus(&pdu->actual_length);
be32_to_cpus(&pdu->start_frame);
- cpu_to_be32s(&pdu->number_of_packets);
+ be32_to_cpus(&pdu->number_of_packets);
be32_to_cpus(&pdu->error_count);
}
}