summaryrefslogtreecommitdiff
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorMikael Pettersson <mikpe@it.uu.se>2007-10-31 15:21:29 +0300
committerJeff Garzik <jeff@garzik.org>2007-11-03 15:46:54 +0300
commit03116d67e0973bb493fe9307e28973a24a272bcc (patch)
tree026e8d66365e7d632431e03dc6a3ed64782ed735 /drivers/cpuidle
parent48166fd9b065005ece8ceae594c1c50b3d955a80 (diff)
downloadlinux-03116d67e0973bb493fe9307e28973a24a272bcc.tar.xz
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 <mikpe@it.uu.se> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions