提交 0917a604 编写于 作者: M Michael Büsch 提交者: Mauro Carvalho Chehab

[media] fc0011: fp/fa value overflow fix

Assign the maximum instead of masking with the maximum on value overflow.
Signed-off-by: NMichael Buesch <m@bues.ch>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 82f0efbc
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册