ASIX: Fix buffer access in asix_get_phy_addr()
authorMarek Vasut <marek.vasut@gmail.com>
Fri, 23 Sep 2011 19:13:35 +0000 (21:13 +0200)
committerRemy Bohmer <linux@bohmer.net>
Sat, 24 Sep 2011 17:28:50 +0000 (19:28 +0200)
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
drivers/usb/eth/asix.c

index 9b012e4a66a2aaa3ddb7be1b87634ec3b11b95f0..2f116c0cb61fd18af28530bbc256037c69e7a60c 100644 (file)
@@ -219,7 +219,7 @@ static inline int asix_get_phy_addr(struct ueth_data *dev)
                debug("Error reading PHYID register: %02x\n", ret);
                goto out;
        }
-       debug("asix_get_phy_addr() returning 0x%04x\n", *((__le16 *)buf));
+       debug("asix_get_phy_addr() returning 0x%02x%02x\n", buf[0], buf[1]);
        ret = buf[1];
 
 out: