diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-12-21 07:20:33 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-23 04:53:05 +0100 |
commit | fdcfd77c813ef7997a60856812805f4cfbeb6222 (patch) | |
tree | 6e2f09a02cbf78941feeccaf7ebd0346fd0843a5 /drivers | |
parent | typhoon: endianness bug in tx/rx byte counters (diff) | |
download | linux-fdcfd77c813ef7997a60856812805f4cfbeb6222.tar.xz linux-fdcfd77c813ef7997a60856812805f4cfbeb6222.zip |
typhoon: missing le32_to_cpu() in get_drvinfo
in typhoon_get_drvinfo() .parm2 is little-endian; not critical
since we just get the firmware id flipped in get_drvinfo output
on big-endian boxen, but...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/typhoon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index 67f31a21beba..497c5846ded7 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c @@ -1056,7 +1056,7 @@ typhoon_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) if(typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp) < 0) { strcpy(info->fw_version, "Unknown runtime"); } else { - u32 sleep_ver = xp_resp[0].parm2; + u32 sleep_ver = le32_to_cpu(xp_resp[0].parm2); snprintf(info->fw_version, 32, "%02x.%03x.%03x", sleep_ver >> 24, (sleep_ver >> 12) & 0xfff, sleep_ver & 0xfff); |