Commit 59dd92eb authored by Hangyu Hua's avatar Hangyu Hua Committed by Lipeng Sang
Browse files

media: meson: vdec: fix possible refcount leak in vdec_probe()

stable inclusion
from stable-v5.10.154
commit be6e22f54623d8a856a4f167b25be73c2ff1ff80
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I64YCB

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



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

[ Upstream commit 77189993 ]

v4l2_device_unregister need to be called to put the refcount got by
v4l2_device_register when vdec_probe fails or vdec_remove is called.

Signed-off-by: default avatarHangyu Hua <hbh25y@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLipeng Sang <sanglipeng1@jd.com>
parent a5cbd227
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment