From: Stefan Richter Date: Sat, 23 Feb 2008 11:24:17 +0000 (+0100) Subject: firewire: endianess fix X-Git-Tag: v2.6.25-rc6~12^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=25df287dc7434edf8dda10ce85e43f88e834a494;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Jarod Wilson --- diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c index 7ebad3c14cb..ed4e3573e72 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