提交 cacd18a8 编写于 作者: D David Chang 提交者: Greg Kroah-Hartman

staging: usbip: fix wrong endian conversion

Fix number_of_packets wrong endian conversion in function
correct_endian_ret_submit()
Signed-off-by: NDavid Chang <dchang@novell.com>
Acked-by: NArjan Mels <arjan.mels@gmx.net>
Cc: stable <stable@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 64a47c50
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册