linux/drivers/media
Ricardo Ribalda 1121d8a5c6 media: dvb-frontends: tda10048: Fix integer overflow
[ Upstream commit 1aa1329a67 ]

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-11 12:51:03 +02:00
..
cec media: cec: core: avoid confusing "transmit timed out" message 2024-06-12 11:39:33 +02:00
common media updates for v6.9-rc1 2024-03-15 11:36:54 -07:00
dvb-core media: dvbdev: Initialize sbuf 2024-07-05 09:38:00 +02:00
dvb-frontends media: dvb-frontends: tda10048: Fix integer overflow 2024-07-11 12:51:03 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: tc358746: Use the correct div_ function 2024-07-11 12:51:03 +02:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:50:59 +02:00
mmc
pci media: intel/ipu6: Fix build with !ACPI 2024-06-27 13:52:16 +02:00
platform media: mediatek: vcodec: Only free buffer VA that is not NULL 2024-07-11 12:50:58 +02:00
radio media: radio-shark2: Avoid led_names truncations 2024-05-30 09:44:47 +02:00
rc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-02-22 15:29:26 -08:00
spi
test-drivers media updates for v6.9-rc1 2024-03-15 11:36:54 -07:00
tuners media: tda18271: remove redundant assignment to variable bcal 2024-02-16 11:46:32 +01:00
usb media: s2255: Use refcount_t instead of atomic_t for num_channels 2024-07-11 12:51:03 +02:00
v4l2-core media: v4l: async: Fix notifier list entry init 2024-06-16 13:50:59 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile