diff options
author | David Chang <dchang@novell.com> | 2011-05-12 06:31:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-17 14:37:13 -0400 |
commit | cacd18a8476ce145ca5dcd46dc5b75585fd1289c (patch) | |
tree | 0c4d71aa3b3ebd62239bad7ef94f6059390216ea /drivers/staging/usbip/usbip_common.c | |
parent | 64a47c5072a6d702349dba30ea8b0e69be4d9778 (diff) |
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>
Diffstat (limited to 'drivers/staging/usbip/usbip_common.c')
-rw-r--r-- | drivers/staging/usbip/usbip_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c index 0f2cd977ca2..68f51068abf 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, | |||
589 | be32_to_cpus(&pdu->status); | 589 | be32_to_cpus(&pdu->status); |
590 | be32_to_cpus(&pdu->actual_length); | 590 | be32_to_cpus(&pdu->actual_length); |
591 | be32_to_cpus(&pdu->start_frame); | 591 | be32_to_cpus(&pdu->start_frame); |
592 | cpu_to_be32s(&pdu->number_of_packets); | 592 | be32_to_cpus(&pdu->number_of_packets); |
593 | be32_to_cpus(&pdu->error_count); | 593 | be32_to_cpus(&pdu->error_count); |
594 | } | 594 | } |
595 | } | 595 | } |