[PATCH 1/1] net: fec: correct phy_name buffer length when init phy_name

David Miller davem at davemloft.net
Tue Jan 31 16:18:02 EST 2012


From: Richard Zhao <richard.zhao at linaro.org>
Date: Mon, 30 Jan 2012 16:08:12 +0800

> 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 at linaro.org>

Applied, thanks.



More information about the linux-arm-kernel mailing list