diff options
| author | 2022-10-31 20:13:41 +0800 | |
|---|---|---|
| committer | 2022-11-02 12:34:48 +0000 | |
| commit | bf00f5426074249058a106a6edbb89e4b25a4d79 (patch) | |
| tree | ade5577bfe194ec91eec7ed829af215215240838 /tools/scripts/ssh:/git@git.zx2c4.com | |
| parent | mISDN: fix possible memory leak in mISDN_register_device() (diff) | |
| download | linux-dev-bf00f5426074249058a106a6edbb89e4b25a4d79.tar.xz linux-dev-bf00f5426074249058a106a6edbb89e4b25a4d79.zip | |
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 'tools/scripts/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
