WSL2-Linux-Kernel/drivers/media/dvb-frontends
Ricardo Ribalda bd56204399 media: dvb-frontends: tda10048: Fix integer overflow
[ Upstream commit 1aa1329a67cc214c3b7bd2a14d1301a795760b07 ]

state->xtal_hz can be up to 16M, so it can overflow a 32 bit integer
when multiplied by pll_mfactor.

Create a new 64 bit variable to hold the calculations.

Link: https://lore.kernel.org/linux-media/20240429-fix-cocci-v3-25-3c4865f5a4b0@chromium.org
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-18 13:07:28 +02:00
..
cxd2880 media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
drx39xyj media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
Kconfig media: sp8870: move it to staging 2021-06-02 11:17:03 +02:00
Makefile media: sp8870: move it to staging 2021-06-02 11:17:03 +02:00
a8293.c
a8293.h
af9013.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
af9013.h
af9013_priv.h
af9033.c media: dvb-frontends/af9033.c: fix missing error codes 2021-01-27 08:38:27 +01:00
af9033.h
af9033_priv.h
as102_fe.c media: as102: improve formatting 2020-01-08 11:44:44 +01:00
as102_fe.h
as102_fe_types.h media: dvb: as102-fe: Fix as10x_register_addr packing 2024-07-18 13:07:26 +02:00
ascot2e.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
ascot2e.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
atbm8830.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
atbm8830.h
atbm8830_priv.h
au8522.h
au8522_common.c
au8522_decoder.c media: au8522: improve formatting 2020-01-08 11:45:50 +01:00
au8522_dig.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
au8522_priv.h
bcm3510.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
bcm3510.h
bcm3510_priv.h
bsbe1-d01a.h
bsbe1.h
bsru6.h
cx22700.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cx22700.h
cx22702.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cx22702.h
cx24110.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cx24110.h
cx24113.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cx24113.h
cx24116.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cx24116.h
cx24117.c media: dvb-frontends: cx24117: Delete 'break' after 'goto' 2021-07-12 14:28:10 +02:00
cx24117.h
cx24120.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cx24120.h
cx24123.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cx24123.h
cxd2099.c media: dvb-frontends/cxd2099: Make en_templ constant 2019-08-21 18:39:55 -03:00
cxd2099.h
cxd2820r.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
cxd2820r_c.c media: cxd2820r: make arrays tab static const, makes object smaller 2019-10-07 07:43:14 -03:00
cxd2820r_core.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cxd2820r_priv.h
cxd2820r_t.c media: cxd2820r: make arrays tab static const, makes object smaller 2019-10-07 07:43:14 -03:00
cxd2820r_t2.c media: cxd2820r: make arrays tab static const, makes object smaller 2019-10-07 07:43:14 -03:00
cxd2841er.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
cxd2841er.h
cxd2841er_priv.h
dib0070.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dib0070.h
dib0090.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dib0090.h
dib3000.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
dib3000mb.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dib3000mb_priv.h
dib3000mc.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dib3000mc.h
dib7000m.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dib7000m.h
dib7000p.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dib7000p.h
dib8000.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dib8000.h
dib9000.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dib9000.h
dibx000_common.c
dibx000_common.h
drxd.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 461 2019-06-19 17:09:09 +02:00
drxd_firm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 461 2019-06-19 17:09:09 +02:00
drxd_firm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 461 2019-06-19 17:09:09 +02:00
drxd_hard.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
drxd_map_firm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 461 2019-06-19 17:09:09 +02:00
drxk.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
drxk_hard.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
drxk_hard.h
drxk_map.h
ds3000.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
ds3000.h
dvb-pll.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
dvb-pll.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
dvb_dummy_fe.c media: dvb_dummy_fe: Add blank line after declaration 2020-01-08 11:43:52 +01:00
dvb_dummy_fe.h media: dvb_dummy_fe: change printk to pr_warn 2020-01-08 11:44:21 +01:00
ec100.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
ec100.h
eds1547.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
gp8psk-fe.c
gp8psk-fe.h
helene.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
helene.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
horus3a.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
horus3a.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
isl6405.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
isl6405.h
isl6421.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
isl6421.h
isl6423.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
isl6423.h
itd1000.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
itd1000.h
itd1000_priv.h
ix2505v.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
ix2505v.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
l64781.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
l64781.h
lg2160.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
lg2160.h
lgdt330x.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
lgdt330x.h
lgdt330x_priv.h
lgdt3305.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
lgdt3305.h
lgdt3306a.c media: lgdt3306a: Add a check against null-pointer-def 2024-06-16 13:39:55 +02:00
lgdt3306a.h
lgs8gl5.c
lgs8gl5.h
lgs8gxx.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
lgs8gxx.h
lgs8gxx_priv.h
lnbh24.h
lnbh25.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
lnbh25.h
lnbh29.c
lnbh29.h
lnbp21.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
lnbp21.h
lnbp22.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
lnbp22.h
m88ds3103.c media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe() 2024-01-25 14:52:43 -08:00
m88ds3103.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
m88ds3103_priv.h media: m88ds3103: Add support for ds3103b demod 2020-03-12 09:25:21 +01:00
m88rs2000.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
m88rs2000.h
mb86a16.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
mb86a16.h
mb86a16_priv.h
mb86a20s.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
mb86a20s.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
mn88443x.c media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table 2023-06-09 10:32:24 +02:00
mn88443x.h
mn88472.c media: mn88472: don't check retval after our own assignemt 2019-08-13 11:48:04 -03:00
mn88472.h
mn88472_priv.h
mn88473.c media: mn88473: don't check retval after our own assignemt 2019-08-13 11:48:18 -03:00
mn88473.h
mn88473_priv.h
mt312.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
mt312.h
mt312_priv.h
mt352.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
mt352.h
mt352_priv.h
mxl5xx.c media: mxl5xx: Move xpt structures off stack 2024-06-16 13:39:57 +02:00
mxl5xx.h
mxl5xx_defs.h
mxl5xx_regs.h
mxl692.c media: mxl692: make a const array static, makes object smaller 2021-06-08 15:50:38 +02:00
mxl692.h media: mxl692: MaxLinear 692 ATSC demod/tuner driver 2021-02-05 23:37:59 +01:00
mxl692_defs.h media: mxl692: MaxLinear 692 ATSC demod/tuner driver 2021-02-05 23:37:59 +01:00
nxt200x.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
nxt200x.h
nxt6000.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
nxt6000.h
nxt6000_priv.h
or51132.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
or51132.h
or51211.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
or51211.h
rtl2830.c
rtl2830.h
rtl2830_priv.h
rtl2832.c media: dvb-frontends/rtl2832.c: fix missing error code 2021-01-27 08:37:18 +01:00
rtl2832.h
rtl2832_priv.h
rtl2832_sdr.c media: rtl2832_sdr/vivid/airspy/hackrf/msi2500: drop memset of fmt.sdr.reserved 2021-05-19 09:51:39 +02:00
rtl2832_sdr.h
s5h1409.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
s5h1409.h
s5h1411.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
s5h1411.h
s5h1420.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
s5h1420.h
s5h1420_priv.h
s5h1432.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
s5h1432.h
s921.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
s921.h
si21xx.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
si21xx.h
si2165.c media: Replace HTTP links with HTTPS ones: SI2165 MEDIA DRIVER 2020-11-27 13:05:07 +01:00
si2165.h media: Replace HTTP links with HTTPS ones: SI2165 MEDIA DRIVER 2020-11-27 13:05:07 +01:00
si2165_priv.h
si2168.c media: si2168: Refactor command setup code 2019-08-21 18:39:54 -03:00
si2168.h media: si2168: use bits instead of bool for flags 2019-10-10 07:05:51 -03:00
si2168_priv.h media: si2168: use bits instead of bool for flags 2019-10-10 07:05:51 -03:00
sp2.c
sp2.h
sp2_priv.h
sp887x.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
sp887x.h
stb0899_algo.c
stb0899_cfg.h
stb0899_drv.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stb0899_drv.h
stb0899_priv.h
stb0899_reg.h
stb6000.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stb6000.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
stb6100.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stb6100.h
stb6100_cfg.h
stb6100_proc.h
stv090x.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stv090x.h
stv090x_priv.h
stv090x_reg.h
stv0288.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stv0288.h
stv0297.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stv0297.h
stv0299.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stv0299.h
stv0367.c media: dvb-frontends: avoid stack overflow warnings with clang 2024-03-26 18:21:30 -04:00
stv0367.h
stv0367_defs.h
stv0367_priv.h
stv0367_regs.h
stv0900.h
stv0900_core.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stv0900_init.h
stv0900_priv.h
stv0900_reg.h
stv0900_sw.c
stv0910.c
stv0910.h
stv0910_regs.h
stv6110.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stv6110.h
stv6110x.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
stv6110x.h
stv6110x_priv.h
stv6110x_reg.h
stv6111.c
stv6111.h
tc90522.c media: dvb-frontends/tc90522: extend i2c algo to support some devices 2019-10-07 07:50:41 -03:00
tc90522.h media: dvb-frontends/tc90522: extend i2c algo to support some devices 2019-10-07 07:50:41 -03:00
tda665x.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tda665x.h
tda826x.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tda826x.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
tda1002x.h
tda1004x.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tda1004x.h
tda8083.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tda8083.h
tda8261.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tda8261.h
tda8261_cfg.h
tda10021.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tda10023.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tda10048.c media: dvb-frontends: tda10048: Fix integer overflow 2024-07-18 13:07:28 +02:00
tda10048.h
tda10071.c media: tda10071: fix unsigned sign extension overflow 2020-03-12 09:46:45 +01:00
tda10071.h
tda10071_priv.h
tda10086.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tda10086.h
tda18271c2dd.c media: dvb-frontends: tda18271c2dd: Remove casting during div 2024-07-18 13:07:28 +02:00
tda18271c2dd.h
tda18271c2dd_maps.h media: dvb-frontends: tda18271c2dd: Constify static structs 2020-09-27 11:26:00 +02:00
tdhd1.h
ts2020.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
ts2020.h
tua6100.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
tua6100.h
ves1x93.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
ves1x93.h
ves1820.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
ves1820.h
z0194a.h media: docs: move driver-specific info to driver-api 2020-04-14 10:36:18 +02:00
zd1301_demod.c media: zd1301_demod: don't check retval after our own assignemt 2019-08-13 11:48:32 -03:00
zd1301_demod.h media: dvb-frontends: remove a clone of a kernel-doc markup at zd1301_demod.h 2020-09-30 18:50:20 +02:00
zl10036.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
zl10036.h media: fix kernel-doc markups 2020-11-16 10:31:16 +01:00
zl10039.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
zl10039.h
zl10353.c media: dvb: symbol fixup for dvb_attach() 2023-09-19 12:22:51 +02:00
zl10353.h
zl10353_priv.h