]> git.baikalelectronics.ru Git - kernel.git/commit
[media] m88rs2000: initialize status to zero
authorColin Ian King <colin.king@canonical.com>
Tue, 10 May 2016 05:40:22 +0000 (02:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 10 Jun 2016 11:41:36 +0000 (08:41 -0300)
commit8d844ae038c0ecece534d15308c57b60ba0c95a2
tree48fdbe4f728dd79408a4c35c6c0322e113d1454e
parent0feab48e88a30bed1cb2ac3faa37452eb5703859
[media] m88rs2000: initialize status to zero

status is not initialized so it can contain garbage. The
check for status containing the FE_HAS_LOCK bit may randomly pass
or fail if the read of register 0x8c fails to set status after 25
read attempts.  Fix this by initializing status to 0.

Issue found with CoverityScan, CID#986738

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/m88rs2000.c