aboutsummaryrefslogtreecommitdiffstats
path: root/tools/scripts/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-10-31 20:13:41 +0800
committerDavid S. Miller <davem@davemloft.net>2022-11-02 12:34:48 +0000
commitbf00f5426074249058a106a6edbb89e4b25a4d79 (patch)
treeade5577bfe194ec91eec7ed829af215215240838 /tools/scripts/ssh:/git@git.zx2c4.com
parentmISDN: fix possible memory leak in mISDN_register_device() (diff)
downloadlinux-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