summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorKenneth Aafloy <devnull@localhost>2004-07-14 14:25:51 +0000
committerKenneth Aafloy <devnull@localhost>2004-07-14 14:25:51 +0000
commit14789fc89047665c8086914fbde8eb575a44332c (patch)
tree65367b0c046d7ca62c0617712a2eccd25c9054c9 /linux/drivers/media/dvb
parent20718e358d4289ff8df347b8361c55f1c2809a49 (diff)
downloadmediapointer-dvb-s2-14789fc89047665c8086914fbde8eb575a44332c.tar.gz
mediapointer-dvb-s2-14789fc89047665c8086914fbde8eb575a44332c.tar.bz2
- Fix integer underflow bug, thanks to Peter Henderson.
Diffstat (limited to 'linux/drivers/media/dvb')
-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 ae5027292..e994f5acd 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 = 6 * freq + IF_FREQUENCYx6;
+ tmp = ((param->frequency*6)/1000000) + IF_FREQUENCYx6;
buf[9] = msb(tmp); /* CHAN_START_(1|0) */
buf[10] = lsb(tmp);