[media] fc0011: fp/fa value overflow fix
Assign the maximum instead of masking with the maximum on value overflow. Signed-off-by: Michael Buesch <m@bues.ch> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
82f0efbcd3
commit
0917a60430
1 changed files with 2 additions and 2 deletions
|
@ -247,8 +247,8 @@ static int fc0011_set_params(struct dvb_frontend *fe)
|
|||
fa += 8;
|
||||
}
|
||||
if (fp > 0x1F) {
|
||||
fp &= 0x1F;
|
||||
fa &= 0xF;
|
||||
fp = 0x1F;
|
||||
fa = 0xF;
|
||||
}
|
||||
if (fa >= fp) {
|
||||
dev_warn(&priv->i2c->dev,
|
||||
|
|
Loading…
Add table
Reference in a new issue