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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 13:23:36 +0000 (14:23 +0100)
commit92d97017c67ca70b1c3ece55fd3caf76fabdeafc
treed5bc5c3a2741ed1f27173ba44217f754e01bc6db
parent4b1743bc715a3691a63ac21b349079b07bf1b19e
isdn: hfcpci: check the return value of dma_set_mask() in setup_hw()

[ Upstream commit d0aeb0d4a3f7d2a0df7e9545892bbeede8f2ac7e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/isdn/hardware/mISDN/hfcpci.c