net: ethernet: ax88796: avoid null pointer dereference
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 31 Jul 2016 07:58:44 +0000 (09:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2016 20:32:51 +0000 (13:32 -0700)
commit09d306d79dd784415c37363c02b5d9eb0157d9a4
treecf3e94839d8f7b29b337296d68fe8f660dc9030e
parent59d53bc213efed3cb40eae2a8273eafd884786a1
net: ethernet: ax88796: avoid null pointer dereference

If platform_get_resource fails, mem2 is null.
Do not dereference null.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/ax88796.c