mirror-linux/drivers/gpu/drm/tegra
Nur Hussein a6eb3aa0ec drm/tegra: Avoid potential 32-bit integer overflow
[ Upstream commit 2429b3c529 ]

In tegra_sor_compute_config(), the 32-bit value mode->clock is
multiplied by 1000, and assigned to the u64 variable pclk. We can avoid
a potential 32-bit integer overflow by casting mode->clock to u64 before
we do the arithmetic and assignment.

Signed-off-by: Nur Hussein <hussein@unixcat.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:35 +01:00
..
Kconfig drm/display: Move SCDC helpers into display-helper library 2022-04-25 11:19:37 +02:00
Makefile
dc.c drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe() 2022-12-31 13:32:17 +01:00
dc.h drm/tegra: Support YVYU, VYUY and YU24 formats 2022-03-01 11:13:09 +01:00
dp.c drm: Rename dp/ to display/ 2022-04-25 11:17:45 +02:00
dp.h
dpaux.c drm: Rename dp/ to display/ 2022-04-25 11:17:45 +02:00
dpaux.h
drm.c gpu: host1x: Avoid trying to use GART on Tegra20 2022-11-18 09:33:20 +01:00
drm.h drm/tegra: Implement stream ID related callbacks on engines 2022-07-08 16:27:52 +02:00
dsi.c
dsi.h
falcon.c drm/tegra: falcon: Set DMACTX field on DMA transactions 2022-07-08 16:27:52 +02:00
falcon.h drm/tegra: falcon: Set DMACTX field on DMA transactions 2022-07-08 16:27:52 +02:00
fb.c drm/fb: rename FB CMA helpers to FB DMA helpers 2022-08-03 18:30:55 +02:00
firewall.c drm/tegra: firewall: Check for is_addr_reg existence in IMM check 2023-03-10 09:33:16 +01:00
gem.c drm/tegra: Fix vmapping of prime buffers 2022-07-08 16:49:48 +02:00
gem.h
gr2d.c
gr2d.h
gr3d.c
gr3d.h
hda.c
hda.h
hdmi.c
hdmi.h
hub.c drm/tegra: Changes for v5.20-rc1 2022-07-12 16:50:05 +10:00
hub.h
mipi-phy.c
mipi-phy.h
nvdec.c drm/tegra: Include DMA API header where used 2022-07-08 17:01:15 +02:00
output.c
plane.c drm: Remove unnecessary include statements of drm_plane_helper.h 2022-07-26 18:42:04 +02:00
plane.h drm/tegra: Support semi-planar formats on Tegra114+ 2022-03-01 11:13:09 +01:00
rgb.c
sor.c drm/tegra: Avoid potential 32-bit integer overflow 2023-05-24 17:32:35 +01:00
sor.h
submit.c drm/tegra: Support context isolation 2022-07-08 16:27:52 +02:00
submit.h
trace.c
trace.h
uapi.c drm/tegra: Support context isolation 2022-07-08 16:27:52 +02:00
uapi.h
vic.c drm/tegra: vic: Use devm_platform_ioremap_resource() 2022-07-08 17:54:42 +02:00
vic.h