summaryrefslogtreecommitdiff
path: root/drivers/usb/eth/asix.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2011-09-23 21:13:35 +0200
committerRemy Bohmer <linux@bohmer.net>2011-09-24 19:28:50 +0200
commit0ed1eb6f55c27adf26c8be2d5b079969de1057f9 (patch)
tree2829e723bc93f9c9492695bbbba03fb126dda4f6 /drivers/usb/eth/asix.c
parent279bbbca12e71ae68278b756048194003a6d6e21 (diff)
downloadu-boot-imx-0ed1eb6f55c27adf26c8be2d5b079969de1057f9.zip
u-boot-imx-0ed1eb6f55c27adf26c8be2d5b079969de1057f9.tar.gz
u-boot-imx-0ed1eb6f55c27adf26c8be2d5b079969de1057f9.tar.bz2
ASIX: Fix buffer access in asix_get_phy_addr()
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'drivers/usb/eth/asix.c')
-rw-r--r--drivers/usb/eth/asix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c
index 9b012e4..2f116c0 100644
--- a/drivers/usb/eth/asix.c
+++ b/drivers/usb/eth/asix.c
@@ -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: