]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
staging: usbip: fix wrong endian conversion
authorDavid Chang <dchang@novell.com>
Thu, 12 May 2011 10:31:11 +0000 (18:31 +0800)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:51 +0000 (13:54 -0700)
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>
drivers/staging/usbip/usbip_common.c

index c141eef47257dcb88fa92784abbeeee19917d336..f4e3e11e02120a84e15abec95fad0003ad80a541 100644 (file)
@@ -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);
        }
 }