net: sxgbe: Fix NULL dereferece when using DT
authorGirish K.S <ks.giri@samsung.com>
Thu, 15 Jan 2015 01:41:47 +0000 (10:41 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jan 2015 00:01:10 +0000 (19:01 -0500)
commit1c1832c7cd35db90b126a984685b44858ad63d01
tree47a4fcdd7514a9b1b575bbc6da383e1a111aa164
parent01fbd3f55cca25a6f9a4764d73da55615398c393
net: sxgbe: Fix NULL dereferece when using DT

When the MAC address is provided in the device tree file, the
condition is true and kernel crashes due to NULL dereference.

Signed-off-by: Girish K.S <ks.giri@samsung.com>
Signed-off-by: Byungho An <bh74.an@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c