android_kernel_sony_sdm845/include/uapi/linux/dvb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Colin Ian King 77d5f7fe23 media: dvb_frontend: ensure that inital front end status initialized
commit a9e4998073d49a762a154a6b48a332ec6cb8e6b1 upstream.

The fe_status variable s is not initialized meaning it can have any
random garbage status.  This could be problematic if fe->ops.tune is
false as s is not updated by the call to fe->ops.tune() and a
subsequent check on the change status will using a garbage value.
Fix this by adding FE_NONE to the enum fe_status and initializing
s to this.

Detected by CoverityScan, CID#112887 ("Uninitialized scalar variable")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-20 10:24:13 +02:00
..
audio.h
ca.h
dmx.h
frontend.h media: dvb_frontend: ensure that inital front end status initialized 2020-06-20 10:24:13 +02:00
Kbuild
net.h
osd.h
version.h
video.h