Skip to contentSkip to conversation

ASIX: Fix buffer access in asix_get_phy_addr()

PATCH New Marek Vasut 2 participants 2 messages Sep 23, 2011 – Sep 24, 2011 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASIX: Fix buffer access in asix_get_phy_addr()

---
 drivers/usb/eth/asix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/eth/asix.c +1 -1
index 9b012e4..2f116c0 100644
@@ -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
#1 lore raw

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

---
?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