Commit 0ed1eb6f authored by Marek Vasut's avatar Marek Vasut Committed by Remy Bohmer
Browse files

ASIX: Fix buffer access in asix_get_phy_addr()

Signed-off-by: default avatarMarek Vasut <>
parent 279bbbca
......@@ -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];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment