summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2004-07-15 12:44:18 +0000
committerJohannes Stezenbach <devnull@localhost>2004-07-15 12:44:18 +0000
commit896fdaa684048f15d95ea263c19b3d4d6e500c8d (patch)
tree710450c9c5cab9106f031ecb725d7d7f187b203f /linux/drivers/media/dvb/frontends
parenta95db549b25200371a4d9ddf63238e4a2043111e (diff)
downloadmediapointer-dvb-s2-896fdaa684048f15d95ea263c19b3d4d6e500c8d.tar.gz
mediapointer-dvb-s2-896fdaa684048f15d95ea263c19b3d4d6e500c8d.tar.bz2
Fix integer overflow bug for high frequencies, thanks to Peter Henderson.
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/mt352.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/mt352.c b/linux/drivers/media/dvb/frontends/mt352.c
index e994f5acd..ab5f8b7ac 100644
--- a/linux/drivers/media/dvb/frontends/mt352.c
+++ b/linux/drivers/media/dvb/frontends/mt352.c
@@ -514,7 +514,7 @@ static int mt352_set_parameters(struct dvb_i2c_bus *i2c,
/* here we assume 1/6MHz == 166.66kHz stepsize */
#define IF_FREQUENCYx6 217 /* 6 * 36.16666666667MHz */
- tmp = ((param->frequency*6)/1000000) + IF_FREQUENCYx6;
+ tmp = ((param->frequency*3)/500000) + IF_FREQUENCYx6;
buf[9] = msb(tmp); /* CHAN_START_(1|0) */
buf[10] = lsb(tmp);