net: 8390: fix potential NULL pointer dereferences
authorKangjie Lu <kjlu@umn.edu>
Tue, 12 Mar 2019 07:24:07 +0000 (02:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2019 21:49:49 +0000 (14:49 -0700)
commitc7cbc3e937b885c9394bf9d0ca21ceb75c2ac262
tree006b17f98fb5b23135fb0ac509ccf461eadf49f9
parent9f4d6358e11bbc7b839f9419636188e4151fb6e4
net: 8390: fix potential NULL pointer dereferences

In case ioremap fails, the fix releases resources and returns
to avoid NULL pointer dereferences.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/pcnet_cs.c