]> git.baikalelectronics.ru Git - kernel.git/commit
net: fec: correct phy_name buffer length when init phy_name
authorRichard Zhao <richard.zhao@linaro.org>
Sun, 29 Jan 2012 22:08:12 +0000 (22:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Jan 2012 21:17:25 +0000 (16:17 -0500)
commit14c41a6f27b788e68669e4b4dd86648ccb48c773
tree30b7ce649d8b4084f4c09c80d6ef778b42e141cb
parent3b0fe6f127ac8a12a6c44323b3df9dd20b4353c3
net: fec: correct phy_name buffer length when init phy_name

Fix the bug that we got wrong phy_name on imx6q sabrelite board.
snprintf used wrong length of phy_name.
phy_name length is MII_BUS_ID_SIZE + 3 rather not MII_BUS_ID_SIZE.
I change it to sizeof(phy_name).

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.c