mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
[media] ite-cir: initialize use_demodulator before using it
Function ite_set_carrier_params() uses variable use_demodulator after
having initialized it to false in some if branches, but this variable is
never set to true otherwise.
This bug has been found using clang -Wsometimes-uninitialized warning
flag.
Fixes: 620a32bba4
("[media] rc: New rc-based ite-cir driver for
several ITE CIRs")
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
19157003ab
commit
7ec03e60ef
1 changed files with 2 additions and 0 deletions
|
@ -261,6 +261,8 @@ static void ite_set_carrier_params(struct ite_dev *dev)
|
|||
|
||||
if (allowance > ITE_RXDCR_MAX)
|
||||
allowance = ITE_RXDCR_MAX;
|
||||
|
||||
use_demodulator = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue