diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-10-31 20:13:41 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-02 12:34:48 +0000 |
commit | bf00f5426074249058a106a6edbb89e4b25a4d79 (patch) | |
tree | ade5577bfe194ec91eec7ed829af215215240838 /fs/netfs | |
parent | e7d1d4d9ac0dfa40be4c2c8abd0731659869b297 (diff) |
isdn: mISDN: netjet: fix wrong check of device registration
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: a900845e5661 ("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>
Diffstat (limited to 'fs/netfs')
0 files changed, 0 insertions, 0 deletions