WSL2-Linux-Kernel/drivers/isdn/hardware
Yang Yingliang a80634f392 isdn: mISDN: netjet: fix wrong check of device registration
[ Upstream commit bf00f54260 ]

The class is set in mISDN_register_device(), but if device_add() returns
error, it will lead to delete a device without added, fix this by using
device_is_registered() to check if the device is registered.

Fixes: a900845e56 ("mISDN: Add support for Traverse Technologies NETJet PCI cards")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-10 18:15:29 +01:00
..
mISDN
Makefile