Files
linux/drivers
Yang Yingliang 4f842cc8da 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 15:46:06 +01:00
..
2021-12-14 10:04:48 +01:00
2022-05-12 12:14:53 +02:00
2022-07-02 16:17:16 +02:00
2020-12-29 13:45:00 +01:00
2022-04-20 09:06:42 +02:00
2020-02-28 15:42:33 +01:00
2022-11-03 23:49:17 +09:00