mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]>
Reviewed-by: Shuah Khan <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
f3ee363fc1
commit
a9e4998073
2 changed files with 2 additions and 1 deletions
|
|
@ -631,7 +631,7 @@ static int dvb_frontend_thread(void *data)
|
|||
struct dvb_frontend *fe = data;
|
||||
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
||||
struct dvb_frontend_private *fepriv = fe->frontend_priv;
|
||||
enum fe_status s;
|
||||
enum fe_status s = FE_NONE;
|
||||
enum dvbfe_algo algo;
|
||||
bool re_tune = false;
|
||||
bool semheld = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue