1
0
Files
linux/drivers
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-10-17 08:42:52 -07:00
2007-10-29 11:33:05 +01:00
2007-10-29 17:27:50 -04:00
2007-10-19 11:53:42 -07:00
2007-10-20 01:34:40 +02:00
2007-10-20 01:55:58 +02:00
2007-10-25 15:02:50 +10:00
2007-10-29 07:41:32 -07:00
2007-10-20 01:34:40 +02:00
2007-10-25 17:43:46 -04:00
2007-10-31 15:21:39 +00:00
2007-10-23 09:49:31 +02:00
2007-10-30 08:06:55 -07:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-30 08:06:55 -07:00
2007-10-20 15:04:06 -07:00
2007-10-29 07:41:33 -07:00
2007-10-17 08:42:57 -07:00
2007-10-23 15:49:54 +10:00