]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2: fix uninitialized value tuner_status(CWE-457)
authorYan Lei <yan_lei@dahuatech.com>
Sun, 10 Apr 2022 01:58:54 +0000 (02:58 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 07:49:53 +0000 (08:49 +0100)
commit2f197e1e6241ec1717c396cddb186a7968bfb1c0
tree4dd315acc7a0a40cfbbfa2ead258a1b7247e501e
parent3373cc8c74172db2ec118e45e451fde2c8d116aa
media: v4l2: fix uninitialized value tuner_status(CWE-457)

Declaring variable "tuner_status" without initializer.
Using uninitialized value "tuner_status" when calling
"*fe_tuner_ops->get_status".
(The function pointer resolves to "cx24113_get_status".)

Signed-off-by: Yan Lei <yan_lei@dahuatech.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/tuner-core.c