Skip to content
Commit 59623047 authored by Wang ShaoBo's avatar Wang ShaoBo Committed by Greg Kroah-Hartman
Browse files

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



[ 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>
parent 07a6a8cf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment