Files
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
..
2022-04-25 11:17:45 +02:00
2022-04-25 11:17:45 +02:00
2022-07-08 16:49:48 +02:00
2021-08-10 14:44:31 +02:00
2022-02-24 17:03:08 +01:00
2021-12-16 14:07:06 +01:00
2022-07-08 16:27:52 +02:00
2021-08-10 17:04:05 +02:00
2022-07-08 16:27:52 +02:00