diff options
author | 2007-12-22 18:56:13 +0000 | |
---|---|---|
committer | 2007-12-22 22:53:07 -0500 | |
commit | b1e247ad8e4ff29b5c7fa2b9a081b4a0f483b0d3 (patch) | |
tree | 02c7d1ef91b0b8606309dda78455c00d0e2aadd2 /fs/stack.c | |
parent | rrunner: use offsetof() instead of homegrown insanity (diff) | |
download | linux-rng-b1e247ad8e4ff29b5c7fa2b9a081b4a0f483b0d3.tar.xz linux-rng-b1e247ad8e4ff29b5c7fa2b9a081b4a0f483b0d3.zip |
3c574 and 3c589 endianness fixes (.24?)
Both store MAC address in CIS; there's no decoder for that
type (0x88) so the drivers work with raw data. It is
byteswapped, so ntohs() works for little-endian, but for
big-endian it's wrong. ntohs(le16_to_cpu()) does the
right thing on both (and always expands to swab16()).
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions