From: Michael Büsch Date: Thu, 7 Feb 2013 15:13:13 +0000 (-0300) Subject: [media] fc0011: fp/fa value overflow fix X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0917a60430cdd4b5d3505c240a04bb0f5927c74b;p=linux-beck.git [media] fc0011: fp/fa value overflow fix Assign the maximum instead of masking with the maximum on value overflow. Signed-off-by: Michael Buesch Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/tuners/fc0011.c b/drivers/media/tuners/fc0011.c index e4882546c283..3089f2ebcbfe 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,