media: ts2020: Variable "utmp" in function ts2020_set_tuner_rf() could be uninitialized
authorYizhuo <yzhai003@ucr.edu>
Wed, 30 Jan 2019 17:33:30 +0000 (12:33 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Apr 2019 17:05:54 +0000 (13:05 -0400)
commit37d1e62b5bb3b1229d0c49f2ee45e67dc67274be
tree98bd9bfc3b581371d916d6e6c51baed904fe72ec
parent1e98a8400ae8712f2b2d52ed6c1c6231607ed854
media: ts2020: Variable "utmp" in function ts2020_set_tuner_rf() could be uninitialized

In function ts2020_set_tuner_rf(), local variable "utmp" could
be uninitialized if function regmap_read() returns -EINVAL.
However, this value is used in if statement and written to
the register, which is potentially unsafe.

Signed-off-by: Yizhuo <yzhai003@ucr.edu>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/dvb-frontends/ts2020.c