summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDavid Chang <dchang@novell.com>2011-05-12 18:31:11 +0800
committerAndi Kleen <ak@linux.intel.com>2011-08-01 13:54:51 -0700
commitc8648b4c2b720f21cba4040e47ce8dbc6e93ef8f (patch)
tree11053e9e2e3e1b19e6fa8a0b485fe6cfb6709bef /drivers
parent738b2bfd83a0bc74f14ca52e7e0fc87be8996176 (diff)
staging: usbip: fix wrong endian conversion
commit cacd18a8476ce145ca5dcd46dc5b75585fd1289c upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers')
-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 c141eef47257..f4e3e11e0212 100644
--- a/drivers/staging/usbip/usbip_common.c
+++ b/drivers/staging/usbip/usbip_common.c
@@ -709,7 +709,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);
}
}