Files
linux/include/uapi
Colin Ian King 11bfa69323 media: dvb_frontend: ensure that inital front end status initialized
commit a9e4998073 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>
2023-05-16 08:17:56 +09:00
..
2023-05-15 13:41:08 +09:00
2016-05-05 23:51:51 +02:00
2016-07-25 10:59:31 +01:00
2014-10-08 20:15:57 +11:00