Searched hist:"2429 b3c529da29d4277d519bd66d034842dcd70c" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | sor.c | diff 2429b3c529da29d4277d519bd66d034842dcd70c Wed Apr 05 15:25:59 CDT 2023 Nur Hussein <hussein@unixcat.org> drm/tegra: Avoid potential 32-bit integer overflow
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>
|