Skip to content
Snippets Groups Projects
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()

parent 279bbbca
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,7 @@ static inline int asix_get_phy_addr(struct ueth_data *dev) ...@@ -219,7 +219,7 @@ static inline int asix_get_phy_addr(struct ueth_data *dev)
debug("Error reading PHYID register: %02x\n", ret); debug("Error reading PHYID register: %02x\n", ret);
goto out; 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]; ret = buf[1];
out: out:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment