From: Mikael Pettersson Date: Wed, 31 Oct 2007 12:21:29 +0000 (+0100) Subject: sata_promise: fix endianess bug in ASIC PRD bug workaround X-Git-Tag: v2.6.24-rc2~48^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03116d67e0973bb493fe9307e28973a24a272bcc;p=pandora-kernel.git sata_promise: fix endianess bug in ASIC PRD bug workaround The original workaround for the Promise ASIC PRD bug contained an endianess bug which I failed to detect: the adjustment of the last PRD entry's length field applied host arithmetic to little-endian data, which is incorrect on big-endian machines. We have the length available in host-endian format, so do the adjustment on host-endian data and then convert and store it in the PRD entry's little-endian data field. Thanks to an anonymous reviewer for detecting this bug. Signed-off-by: Mikael Pettersson Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed