linux/drivers/media/tuners
Antti Palosaari 5b1a2427d4 media: m88ts2022: fix 32bit overflow on filter calc
commit f538e08513 upstream.

Maximum satellite symbol rate used is 45000000Sps which overflows
when multiplied by 135. As final calculation result is fraction,
we could use mult_frac macro in order to keep calculation inside
32 bit number limits and prevent overflow.

Original bug and fix was provided by Nibble Max. I decided to
implement it differently as it is now.

Reported-by: Nibble Max <nibble.max@gmail.com>
Tested-by: Nibble Max <nibble.max@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-14 08:59:54 -08:00
..
Kconfig [media] Montage M88TS2022 silicon tuner driver 2013-12-19 09:19:01 -02:00
Makefile [media] Montage M88TS2022 silicon tuner driver 2013-12-19 09:19:01 -02:00
e4000.c [media] e4000: fix error return code 2014-01-07 09:34:05 -02:00
e4000.h [media] e4000: change remaining pr_warn to dev_warn 2013-08-18 07:52:53 -03:00
e4000_priv.h [media] Elonics E4000 silicon tuner driver 2012-09-18 12:24:59 -03:00
fc001x-common.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
fc0011.c Revert "[media] fc0011: Return early, if the frequency is already tuned" 2013-02-11 19:38:59 -02:00
fc0011.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
fc0012-priv.h [media] fc0012: use Kernel dev_foo() logging 2013-01-06 09:08:23 -02:00
fc0012.c [media] fc001[23]: Change variable type to bool 2013-10-02 06:48:14 -03:00
fc0012.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
fc0013-priv.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
fc0013.c [media] fc001[23]: Change variable type to bool 2013-10-02 06:48:14 -03:00
fc0013.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
fc2580.c media: fc2580: fix tuning failure on 32-bit arch 2014-06-07 10:28:28 -07:00
fc2580.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
fc2580_priv.h media: fc2580: fix tuning failure on 32-bit arch 2014-06-07 10:28:28 -07:00
m88ts2022.c media: m88ts2022: fix 32bit overflow on filter calc 2014-11-14 08:59:54 -08:00
m88ts2022.h [media] m88ts2022: fix some style issues reported by checkpatch.pl 2013-12-19 09:24:57 -02:00
m88ts2022_priv.h [media] m88ts2022: fix some style issues reported by checkpatch.pl 2013-12-19 09:24:57 -02:00
max2165.c [media] max2165: get rid of warning: no previous prototype 2012-10-27 18:10:38 -02:00
max2165.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
max2165_priv.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
mc44s803.c [media] mc44s803: implement get_if_frequency() 2012-09-18 12:54:44 -03:00
mc44s803.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
mc44s803_priv.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
mt20xx.c [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
mt20xx.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
mt2060.c [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
mt2060.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
mt2060_priv.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
mt2063.c [media] media_tree: Fix spelling errors 2013-11-29 14:43:50 -02:00
mt2063.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
mt2131.c [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
mt2131.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
mt2131_priv.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
mt2266.c [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
mt2266.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
mxl5005s.c [media] mxl5005s: implement get_if_frequency() 2012-09-18 12:51:00 -03:00
mxl5005s.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
mxl5007t.c Revert "[media] [PATH,1/2] mxl5007 move reset to attach" 2013-02-08 17:49:26 -02:00
mxl5007t.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
qt1010.c [media] qt1010: remove debug register dump 2012-09-15 09:21:41 -03:00
qt1010.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
qt1010_priv.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
r820t.c [media] r820t: add support for R828D 2013-10-31 06:09:13 -02:00
r820t.h [media] r820t: Remove a warning for an unused value 2013-04-25 16:07:04 -03:00
tda827x.c [media] tda8290: change magic LNA config values to enum 2013-04-08 07:05:15 -03:00
tda827x.h [media] tda8290: change magic LNA config values to enum 2013-04-08 07:05:15 -03:00
tda8290.c [media] tuner-core/simple: get_rf_strength can be tuner mode specific 2013-04-14 19:44:50 -03:00
tda8290.h [media] tda8290: change magic LNA config values to enum 2013-04-08 07:05:15 -03:00
tda9887.c [media] tda9887: remove an warning when compiling for alpha 2013-11-07 15:03:10 -02:00
tda9887.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tda18212.c [media] tuners: Don't use dynamic static allocation 2013-11-08 09:45:41 -02:00
tda18212.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
tda18218.c [media] tuners: Don't use dynamic static allocation 2013-11-08 09:45:41 -02:00
tda18218.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
tda18218_priv.h [media] tda18218: switch to Kernel logging 2012-09-15 09:23:16 -03:00
tda18271-common.c [media] tda18271-common: hold the I2C adapter during write transfers 2012-10-07 09:43:01 -03:00
tda18271-fe.c [media] tda8290: change magic LNA config values to enum 2013-04-08 07:05:15 -03:00
tda18271-maps.c [media] tuners/tda18271: Replace memcpy with struct assignment 2012-12-27 19:01:13 -02:00
tda18271-priv.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
tda18271.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tea5761.c [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
tea5761.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tea5767.c [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
tea5767.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tua9001.c [media] tua9001: fix a warning 2012-10-28 07:38:54 -02:00
tua9001.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00
tua9001_priv.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
tuner-i2c.h [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
tuner-simple.c [media] tuner-core/simple: get_rf_strength can be tuner mode specific 2013-04-14 19:44:50 -03:00
tuner-simple.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tuner-types.c [media] tuner: add Sony BTF tuners 2013-03-24 12:11:35 -03:00
tuner-xc2028-types.h [media] media_tree: Fix spelling errors 2013-11-29 14:43:50 -02:00
tuner-xc2028.c [media] tuner-xc2028: Don't read status if device is powered down 2014-01-10 06:05:13 -02:00
tuner-xc2028.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
tuner_it913x.c [media] it913x: rename its tuner driver to tuner_it913x 2013-04-16 20:06:05 -03:00
tuner_it913x.h [media] it913x: rename its tuner driver to tuner_it913x 2013-04-16 20:06:05 -03:00
tuner_it913x_priv.h [media] it913x: rename its tuner driver to tuner_it913x 2013-04-16 20:06:05 -03:00
xc4000.c media: xc4000: Fix get_frequency() 2014-09-17 09:19:05 -07:00
xc4000.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
xc5000.c media: xc5000: Fix get_frequency() 2014-09-17 09:19:05 -07:00
xc5000.h [media] tuners: use IS_ENABLED 2013-03-23 09:22:06 -03:00