diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-02-23 12:24:17 +0100 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2008-03-14 00:56:58 +0100 |
commit | 25df287dc7434edf8dda10ce85e43f88e834a494 (patch) | |
tree | 110670c11924a3e33438acb9d9f3418e32a5df82 /drivers/firewire | |
parent | cdeeeae056a429e729ae9e914fa8142ee45bee93 (diff) | |
download | linux-stable-25df287dc7434edf8dda10ce85e43f88e834a494.tar.gz linux-stable-25df287dc7434edf8dda10ce85e43f88e834a494.tar.bz2 linux-stable-25df287dc7434edf8dda10ce85e43f88e834a494.zip |
firewire: endianess fix
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>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/fw-ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c index 7ebad3c14cb8..ed4e3573e72c 100644 --- 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 = (buffer[2] >> 16) & 0xff; + ohci->request_generation = (p.header[2] >> 16) & 0xff; else if (ctx == &ohci->ar_request_ctx) fw_core_handle_request(&ohci->card, &p); else |