Files
linux-apfs/drivers/ata
Mikael Pettersson 03116d67e0 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>
2007-11-03 08:46:54 -04:00
..
2007-11-03 08:46:53 -04:00
2007-11-03 08:46:29 -04:00
2007-10-12 14:55:37 -04:00
2007-10-20 01:02:48 +02:00
2007-10-19 22:55:03 -04:00
2007-10-29 06:49:24 -04:00
2006-08-10 07:31:37 -04:00
2007-07-02 10:17:42 -04:00