net: cpsw: fix null dereference at probe
authorJohan Hovold <jhovold@gmail.com>
Thu, 8 May 2014 08:09:23 +0000 (10:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 May 2014 19:51:20 +0000 (15:51 -0400)
commit6954cc1f238199e971ec905c5cc87120806ac981
tree2f0629dff0216c6b432123beb3809df4c1b9b288
parent59993f48b38fd46863b23bb1bb1dc3291e7278fb
net: cpsw: fix null dereference at probe

Fix null-pointer dereference at probe when the mdio platform device is
missing (e.g. when it has been disabled in DT).

Cc: stable <stable@vger.kernel.org> # v3.8
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c