summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Büsch <m@bues.ch>2013-02-07 15:13:13 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-02-08 19:39:37 (GMT)
commit0917a60430cdd4b5d3505c240a04bb0f5927c74b (patch)
tree6a4f3997d3a3d8c3d9186306b7a7125ebe26d0e4
parent82f0efbcd3c4e6bf7cdfeed5c901b812e6d30f92 (diff)
downloadlinux-fsl-qoriq-0917a60430cdd4b5d3505c240a04bb0f5927c74b.tar.xz
[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>
-rw-r--r--drivers/media/tuners/fc0011.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/fc0011.c b/drivers/media/tuners/fc0011.c
index e488254..3089f2e 100644
--- a/drivers/media/tuners/fc0011.c
+++ b/drivers/media/tuners/fc0011.c
@@ -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,