Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/tegra: Avoid potential 32-bit integer overflow
[ Upstream commit 2429b3c ] 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>
- Loading branch information