projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a47c5
)
staging: usbip: fix wrong endian conversion
author
David Chang
<dchang@novell.com>
Thu, 12 May 2011 10:31:11 +0000
(18:31 +0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 17 May 2011 18:37:13 +0000
(11:37 -0700)
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/usbip_common.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/usbip/usbip_common.c
b/drivers/staging/usbip/usbip_common.c
index 0f2cd977ca2afa165bc37204419114aa8bc5caa3..68f51068abf1457260f111d80ffc48dc08489dc3 100644
(file)
--- 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_be32
s(&pdu->number_of_packets);
+
be32_to_cpu
s(&pdu->number_of_packets);
be32_to_cpus(&pdu->error_count);
}
}