ASIX: Fix buffer access in asix_get_phy_addr()
PATCH 1/1 ASIX: Fix buffer access in asix_get_phy_addr()
Signed-off-by Marek Vasut <[email protected]>
--- drivers/usb/eth/asix.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/eth/asix.c +1 -1
@@ -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:
Signature · 1 line
1.7.5.4
PATCH 1/1 ASIX: Fix buffer access in asix_get_phy_addr()
Hi,
2011/9/23 Marek Vasut <[email protected]>:
drivers/usb/eth/asix.c
Quoted 6 lines
Signed-off-by Marek Vasut <[email protected]>---
?drivers/usb/eth/asix.c | ? ?2 +-
?1 files changed, 1 insertions(+), 1 deletions(-)drivers/usb/eth/asix.c +0
-0
Applied to u-boot-usb. Thanks.
Remy