diff options
author | 2023-04-06 04:25:59 +0800 | |
---|---|---|
committer | 2023-04-06 14:02:33 +0200 | |
commit | 2429b3c529da29d4277d519bd66d034842dcd70c (patch) | |
tree | d4d9285d158e44b0b0238ac30f1e3ceed206e5dd /tools/perf/scripts/python | |
parent | drm/tegra: Implement fbdev emulation as in-kernel client (diff) | |
download | wireguard-linux-2429b3c529da29d4277d519bd66d034842dcd70c.tar.xz wireguard-linux-2429b3c529da29d4277d519bd66d034842dcd70c.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions