From: David Chang Date: Thu, 12 May 2011 10:31:11 +0000 (+0800) Subject: staging: usbip: fix wrong endian conversion X-Git-Tag: upstream/snapshot3+hdmi~10345^2~267 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cacd18a8476ce145ca5dcd46dc5b75585fd1289c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git staging: usbip: fix wrong endian conversion Fix number_of_packets wrong endian conversion in function correct_endian_ret_submit() Signed-off-by: David Chang Acked-by: Arjan Mels Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c index 0f2cd97..68f5106 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); } }