net: cpsw: fix null dereference at probe
authorJohan Hovold <jhovold@gmail.com>
Thu, 8 May 2014 08:09:23 +0000 (10:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Jul 2014 03:09:41 +0000 (20:09 -0700)
commite0fc51f96172f207cf4cb276e6a31a5d438f6b06
tree05d1320f7c89d4e06414a496d7fc1427076b043f
parentf6e39ac6156b2b46584d2dbbd4c2ead95e883552
net: cpsw: fix null dereference at probe

commit 6954cc1f238199e971ec905c5cc87120806ac981 upstream.

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

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ti/cpsw.c