diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2007-02-24 07:14:39 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:14 -0500 |
commit | b797c206168992e8a2c080e80e39a56410cdaac0 (patch) | |
tree | c489a52b792a4b7a4efc27dd1ec845ec3f4a89cb /drivers | |
parent | b3332a983dc07d6bd35d5a97a6e3572b067e7f53 (diff) |
V4L/DVB (9380): FIX: a possible division by zero
Thanks to Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_algo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c index 0ae964975814..876931527c71 100644 --- a/drivers/media/dvb/frontends/stb0899_algo.c +++ b/drivers/media/dvb/frontends/stb0899_algo.c | |||
@@ -933,9 +933,9 @@ static void stb0899_dvbs2_set_btr_loopbw(struct stb0899_state *state) | |||
933 | sym_peak *= 576000; | 933 | sym_peak *= 576000; |
934 | K = (1 << config->btr_nco_bits) / (internal->master_clk / 1000); | 934 | K = (1 << config->btr_nco_bits) / (internal->master_clk / 1000); |
935 | K *= (internal->srate / 1000000) * decim; /*k=k 10^-8*/ | 935 | K *= (internal->srate / 1000000) * decim; /*k=k 10^-8*/ |
936 | K = sym_peak / K; | ||
937 | 936 | ||
938 | if (K != 0) { | 937 | if (K != 0) { |
938 | K = sym_peak / K; | ||
939 | wn = (4 * zeta * zeta) + 1000000; | 939 | wn = (4 * zeta * zeta) + 1000000; |
940 | wn = (2 * (loopbw_percent * 1000) * 40 * zeta) /wn; /*wn =wn 10^-8*/ | 940 | wn = (2 * (loopbw_percent * 1000) * 40 * zeta) /wn; /*wn =wn 10^-8*/ |
941 | 941 | ||