kernel_samsung_a53x/drivers/video
Roman Smirnov 2a1bacf07e fbmon: prevent division by zero in fb_videomode_from_videomode()
[ Upstream commit c2d953276b8b27459baed1277a4fdd5dd9bd4126 ]

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-11-19 09:23:15 +01:00
..
backlight backlight: lp8788: Fully initialize backlight_properties during probe 2024-11-19 08:44:56 +01:00
console Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbdev fbmon: prevent division by zero in fb_videomode_from_videomode() 2024-11-19 09:23:15 +01:00
logo Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
display_timing.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of_display_timing.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of_videomode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgastate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
videomode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00