isdn: mISDNinfineon: fix potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Sat, 9 Mar 2019 05:49:34 +0000 (23:49 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Mar 2019 17:58:08 +0000 (10:58 -0700)
commitd721fe99f6ada070ae8fc0ec3e01ce5a42def0d9
tree725847cb7c0b2485003ff9a65a3f52a40c9e6d60
parent69b51bbb03f73e04c486f79d1556b2d9becf4dbc
isdn: mISDNinfineon: fix potential NULL pointer dereference

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

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/mISDNinfineon.c