net: tsec: Fix NULL access in case init_phy() fails
authorClaudiu Manoil <claudiu.manoil@freescale.com>
Tue, 10 Dec 2013 13:21:04 +0000 (15:21 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 30 Jan 2015 21:55:00 +0000 (15:55 -0600)
commit7f233c05573fabe8ff1ed7f22c269cdfdfc30529
tree8e43d3d7147bdc9ebdba2f8218461e30e0623f6d
parent2af13d6b6265a6700c4f65597410b769895024bf
net: tsec: Fix NULL access in case init_phy() fails

If the PHY is not recognized don't access phydev (NULL)
and return 0 to signal failure.

Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com>
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/tsec.c