linux-stable/drivers/video
Roman Smirnov 72d091b751 fbmon: prevent division by zero in fb_videomode_from_videomode()
[ Upstream commit c2d953276b ]

The expression htotal * vtotal can have a zero value on
overflow. It is necessary to prevent division by zero like in
fb_var_to_videomode().

Found by Linux Verification Center (linuxtesting.org) with Svace.

Signed-off-by: Roman Smirnov <r.smirnov@omp.ru>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 12:51:39 +02:00
..
backlight backlight: lp8788: Fully initialize backlight_properties during probe 2024-03-26 18:22:23 -04:00
console vgacon: Propagate console boot parameters before calling `vc_resize' 2021-12-08 09:01:13 +01:00
fbdev fbmon: prevent division by zero in fb_videomode_from_videomode() 2024-04-13 12:51:39 +02:00
logo
Kconfig
Makefile
display_timing.c
hdmi.c
of_display_timing.c
of_videomode.c
vgastate.c
videomode.c