commit | ef66003adb3543bb11de7e9771c7f76095c7dcdd | [log] [tgz] |
---|---|---|
author | Heiko Schocher <hs@denx.de> | Thu Sep 05 11:50:41 2013 +0200 |
committer | Tom Rini <trini@ti.com> | Fri Sep 20 16:57:40 2013 -0400 |
tree | e809dff00799bd968e0ec0f5de3b7a60ad4a6927 | |
parent | 25a8ae9cbb6fc383028122501c919eca892be9bf [diff] |
net, phy, cpsw: fix NULL pointer deference if phy_connect() did not find a phy, phydev is NULL and following code in cpsw_phy_init() crashes. Fix this. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Mugunthan V N <mugunthanvnm@ti.com> Cc: Tom Rini <trini@ti.com> Acked-by: Mugunthan V N <mugunthanvnm@ti.com>