net: WIZnet drivers: fix possible NULL dereference
authorMike Sinkovsky <msink@permonline.ru>
Tue, 10 Apr 2012 19:53:53 +0000 (19:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 17:34:12 +0000 (13:34 -0400)
commit77577bf93275b485cecb4f358a085949c32e9dcd
tree3e65e14eccd1e5c61a2ed78da03031d30308da56
parent9b17876f3e674a794a2d83aa47a9b356d36b7418
net: WIZnet drivers: fix possible NULL dereference

This fixes possible null dereference in probe() function: when both
.mac_addr and .link_gpio are unknown, dev.platform_data may be NULL

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mike Sinkovsky <msink@permonline.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/wiznet/w5100.c
drivers/net/ethernet/wiznet/w5300.c