Commit 4c267e55 authored by Wang ShaoBo's avatar Wang ShaoBo Committed by sanglipeng
Browse files

mISDN: fix misuse of put_device() in mISDN_register_device()

stable inclusion
from stable-v5.10.156
commit 709aa1f73d3e9e9ea16e2c4e44f2874c5d2c382c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MCG1

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=709aa1f73d3e9e9ea16e2c4e44f2874c5d2c382c



--------------------------------

[ Upstream commit 2d25107e ]

We should not release reference by put_device() before calling device_initialize().

Fixes: e7d1d4d9 ("mISDN: fix possible memory leak in mISDN_register_device()")
Signed-off-by: default avatarWang ShaoBo <bobo.shaobowang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent a0c93450
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment