linux-stable/drivers/video
Roman Smirnov 1b107d637f 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 13:10:11 +02:00
..
backlight backlight: lp8788: Fully initialize backlight_properties during probe 2024-03-26 18:17:19 -04:00
console vgacon: drop IA64 reference in VGA_CONSOLE dependency list 2023-11-28 19:04:20 +00:00
fbdev fbmon: prevent division by zero in fb_videomode_from_videomode() 2024-04-13 13:10:11 +02:00
logo video/logo: use %u format specifier for unsigned int values 2024-01-12 12:38:37 +01:00
Kconfig video: logo: LOGO should depend on FB_CORE i.s.o. FB 2023-07-28 11:48:30 +02:00
Makefile video: Move HP PARISC STI core code to shared location 2023-04-20 10:04:51 +02:00
aperture.c video/aperture: Provide a VGA helper for gma500 and internal use 2023-04-16 14:18:10 +02:00
cmdline.c fbdev: Handle video= parameter in video/cmdline.c 2023-02-20 14:56:48 +01:00
display_timing.c
hdmi.c
nomodeset.c
of_display_timing.c
of_videomode.c
sticore.c video/sticore: Store ROM device in STI struct 2024-01-12 12:38:37 +01:00
vgastate.c
videomode.c