Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fdcfd77c813ef7997a60856812805f4cfbeb6222
Commit:     fdcfd77c813ef7997a60856812805f4cfbeb6222
Parent:     73eac0640ebfb30fee99e06ee029444af0d7ae8d
Author:     Al Viro <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 21 06:20:33 2007 +0000
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Sat Dec 22 22:53:05 2007 -0500

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 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 67f31a2..497c584 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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to