net: fujitsu: fix a potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Tue, 12 Mar 2019 07:16:21 +0000 (02:16 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2019 21:48:35 +0000 (14:48 -0700)
commit9f4d6358e11bbc7b839f9419636188e4151fb6e4
treee225aeb50ba736874e70b2e73cea54d568f1eabc
parenteb32cfcdef2305dc0e44a65d42801315669bb27e
net: fujitsu: fix a potential NULL pointer dereference

In case ioremap fails, the fix releases the pcmcia window and
returns -ENOMEM to avoid the NULL pointer dereference.

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