summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-07-20 18:12:07 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-20 10:24:13 +0200
commit77d5f7fe23e92dfdeefcc9a225ee97eee2667d95 (patch)
tree5eb5f2f5a2c98a6ce3636bbe7085ec6e18dbc4a5 /include/uapi/linux
parentc8ed03b9c541e9ac25085d4c2c74b775161c1654 (diff)
downloadlinux-stable-77d5f7fe23e92dfdeefcc9a225ee97eee2667d95.tar.gz
linux-stable-77d5f7fe23e92dfdeefcc9a225ee97eee2667d95.tar.bz2
linux-stable-77d5f7fe23e92dfdeefcc9a225ee97eee2667d95.zip
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>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/dvb/frontend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/dvb/frontend.h b/include/uapi/linux/dvb/frontend.h
index 00a20cd21ee2..afc3972b0879 100644
--- a/include/uapi/linux/dvb/frontend.h
+++ b/include/uapi/linux/dvb/frontend.h
@@ -127,6 +127,7 @@ enum fe_sec_mini_cmd {
* to reset DiSEqC, tone and parameters
*/
enum fe_status {
+ FE_NONE = 0x00,
FE_HAS_SIGNAL = 0x01,
FE_HAS_CARRIER = 0x02,
FE_HAS_VITERBI = 0x04,