net, phy, cpsw: fix NULL pointer deference
authorHeiko Schocher <hs@denx.de>
Thu, 5 Sep 2013 09:50:41 +0000 (11:50 +0200)
committerTom Rini <trini@ti.com>
Fri, 20 Sep 2013 20:57:40 +0000 (16:57 -0400)
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>

No differences found