Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0917a604 authored by Michael Buesch's avatar Michael Buesch Committed by Mauro Carvalho Chehab
Browse files

[media] fc0011: fp/fa value overflow fix



Assign the maximum instead of masking with the maximum on value overflow.

Signed-off-by: default avatarMichael Buesch <m@bues.ch>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 82f0efbc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,