Skip to contentSkip to conversation

fc0011: fp/fa value overflow fix

PATCH New Michael Büsch 1 participant 1 message Feb 7, 2013

Subsystems (2)
lore
Share & tools
lore

Michael Büsch

author maintainer
#0 lore raw

PATCH 1/4 fc0011: fp/fa value overflow fix

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

---

drivers/media/tuners/fc0011.c +2 -2
Index: linux/drivers/media/tuners/fc0011.c
===================================================================
@@ -247,8 +247,8 @@
 		fa += 8;
 	}
 	if (fp > 0x1F) {
-		fp &= 0x1F;
-		fa &= 0xF;
+		fp = 0x1F;
+		fa = 0xF;
 	}
 	if (fa >= fp) {
 		dev_warn(&priv->i2c->dev,
Signature · 3 lines
Greetings, Michael.

PGP: 908D8B0E