staging: usbip: fix wrong endian conversion
[pandora-kernel.git] / drivers / staging / usbip / usbip_common.c
index 7b1fe45..37b650b 100644 (file)
@@ -604,7 +604,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);
        }
 }