isdn: hfcpci: check the return value of dma_set_mask() in setup_hw()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Sat, 5 Mar 2022 08:58:16 +0000 (00:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Mar 2022 11:27:12 +0000 (11:27 +0000)
commitd0aeb0d4a3f7d2a0df7e9545892bbeede8f2ac7e
tree094ea56af95b3b2a7de1b321868c5db9519e3841
parentafb3cc1a397d77771f342691b7e6b032a234d7f2
isdn: hfcpci: check the return value of dma_set_mask() in setup_hw()

The function dma_set_mask() in setup_hw() can fail, so its return value
should be checked.

Fixes: 1700fe1a10dc ("Add mISDN HFC PCI driver")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/hfcpci.c