Commit caee0373 authored by Dinghao Liu's avatar Dinghao Liu Committed by liwei
Browse files

media: dvbdev: Fix memleak in dvb_register_device

mainline inclusion
from mainline-v5.11-rc1
commit 167faadf
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I635IG
CVE: CVE-2022-45884

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=167faadfcf9339088910e9e85a1b711fcbbef8e9



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

When device_create() fails, dvbdev and dvbdevfops should
be freed just like when dvb_register_media_device() fails.

Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarliwei <liwei728@huawei.com>
parent 6cea0048
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment