projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdeeeae
)
firewire: endianess fix
author
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Sat, 23 Feb 2008 11:24:17 +0000
(12:24 +0100)
committer
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Thu, 13 Mar 2008 23:56:58 +0000
(
00:56
+0100)
The generation of incoming requests was filled in in wrong byte order on
machines with big endian CPU.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Jarod Wilson <jwilson@redhat.com>
drivers/firewire/fw-ohci.c
patch
|
blob
|
history
diff --git
a/drivers/firewire/fw-ohci.c
b/drivers/firewire/fw-ohci.c
index 7ebad3c14cb80bbd62b930551494400c901f81f0..ed4e3573e72c48a92c6f9829bee021dd8c941b88 100644
(file)
--- a/
drivers/firewire/fw-ohci.c
+++ b/
drivers/firewire/fw-ohci.c
@@
-375,7
+375,7
@@
static __le32 *handle_ar_packet(struct ar_context *ctx, __le32 *buffer)
*/
if (p.ack + 16 == 0x09)
- ohci->request_generation = (
buff
er[2] >> 16) & 0xff;
+ ohci->request_generation = (
p.head
er[2] >> 16) & 0xff;
else if (ctx == &ohci->ar_request_ctx)
fw_core_handle_request(&ohci->card, &p);
else