commit | 44658d65f6b3118f595a1229d7eed74845a5e2ac | [log] [tgz] |
---|---|---|
author | Wang ShaoBo <bobo.shaobowang@huawei.com> | Thu Nov 10 19:38:23 2022 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Nov 25 17:35:39 2022 +0100 |
tree | fc088673036273542f945978b219a65264704ab7 | |
parent | bbd53d05c4c892080ef3b617eff4f57903acecb9 [diff] |
mISDN: fix misuse of put_device() in mISDN_register_device() [ Upstream commit 2d25107e111a85c56f601a5470f1780ec054e6ac ] We should not release reference by put_device() before calling device_initialize(). Fixes: e7d1d4d9ac0d ("mISDN: fix possible memory leak in mISDN_register_device()") Signed-off-by: Wang ShaoBo <bobo.shaobowang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>