projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
279bbbc
)
ASIX: Fix buffer access in asix_get_phy_addr()
author
Marek Vasut
<marek.vasut@gmail.com>
Fri, 23 Sep 2011 19:13:35 +0000
(21:13 +0200)
committer
Remy Bohmer
<linux@bohmer.net>
Sat, 24 Sep 2011 17:28:50 +0000
(19:28 +0200)
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
drivers/usb/eth/asix.c
patch
|
blob
|
history
diff --git
a/drivers/usb/eth/asix.c
b/drivers/usb/eth/asix.c
index 9b012e4a66a2aaa3ddb7be1b87634ec3b11b95f0..2f116c0cb61fd18af28530bbc256037c69e7a60c 100644
(file)
--- 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%0
4x\n", *((__le16 *)buf)
);
+ debug("asix_get_phy_addr() returning 0x%0
2x%02x\n", buf[0], buf[1]
);
ret = buf[1];
out: