mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 23:53:55 +08:00
[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
@ -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…
Reference in New Issue
Block a user