diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-07-21 00:12:07 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-27 23:55:51 +0200 |
commit | a9e4998073d49a762a154a6b48a332ec6cb8e6b1 (patch) | |
tree | 8de9cd87e2221b9cad48a752d7ee2855903dadbd /crypto | |
parent | media: dvbproperty.rst: minor editorial changes (diff) | |
download | linux-a9e4998073d49a762a154a6b48a332ec6cb8e6b1.tar.xz linux-a9e4998073d49a762a154a6b48a332ec6cb8e6b1.zip |
media: dvb_frontend: ensure that inital front end status initialized
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>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions