diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-09 15:32:29 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-27 01:22:38 +0300 |
commit | a30cf94eaf5dd3ffd8d13c3a8c303d04357b01c1 (patch) | |
tree | ffe0a0fc5f07dc4cb36b1e5d9981f4f0dcbe1545 /include | |
parent | 085f36c317cba8b8955c5da5f59c7486345d2bbb (diff) | |
download | linux-a30cf94eaf5dd3ffd8d13c3a8c303d04357b01c1.tar.xz |
media: dvbdev: fix error logic at dvb_register_device()
[ Upstream commit 1fec2ecc252301110e4149e6183fa70460d29674 ]
As reported by smatch:
drivers/media/dvb-core/dvbdev.c: drivers/media/dvb-core/dvbdev.c:510 dvb_register_device() warn: '&dvbdev->list_head' not removed from list
drivers/media/dvb-core/dvbdev.c: drivers/media/dvb-core/dvbdev.c:530 dvb_register_device() warn: '&dvbdev->list_head' not removed from list
drivers/media/dvb-core/dvbdev.c: drivers/media/dvb-core/dvbdev.c:545 dvb_register_device() warn: '&dvbdev->list_head' not removed from list
The error logic inside dvb_register_device() doesn't remove
devices from the dvb_adapter_list in case of errors.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: 8c64f4cdf4e6 ("media: edia: dvbdev: fix a use-after-free")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions