isdn: hfcpci: fix potential NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Tue, 12 Mar 2019 05:54:55 +0000 (00:54 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2019 21:36:02 +0000 (14:36 -0700)
commit10010493c1261ca3d7444d372f281009890a5ff7
treeb0e0af67f213a58f5c05a551fcd55d261eaf8b3b
parenta3b1933d34d5bb26d7503752e3528315a9e28339
isdn: hfcpci: fix potential NULL pointer dereference

In case ioremap fails, the fix releases resources and returns.
The following printk is for logging purpose and thus is
preserved.

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