diff options
author | Wei Chen <harperchen1110@gmail.com> | 2023-03-15 11:33:47 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-03-16 18:18:16 +0300 |
commit | d823685486a3446d061fed7c7d2f80af984f119a (patch) | |
tree | 8cb44ddb2b1532c2a9c40d4b32929a83b383a26e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 92e2a00f2987483e1f9253625828622edd442e61 (diff) | |
download | linux-d823685486a3446d061fed7c7d2f80af984f119a.tar.xz |
fbdev: intelfb: Fix potential divide by zero
Variable var->pixclock is controlled by user and can be assigned
to zero. Without proper check, divide by zero would occur in
intelfbhw_validate_mode and intelfbhw_mode_to_hw.
Error out if var->pixclock is zero.
Signed-off-by: Wei Chen <harperchen1110@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions