kernel_samsung_a53x/drivers/video/fbdev/core
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
..
bitblit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cfbcopyarea.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cfbfillrect.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cfbimgblt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fb_cmdline.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fb_ddc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fb_defio.c fbdev: flush deferred work in fb_deferred_io_fsync() 2024-11-18 12:12:47 +01:00
fb_draw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fb_notify.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fb_sys_fops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcon_ccw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcon_cw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcon_rotate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcon_rotate.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcon_ud.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbcvt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fbmon.c fbmon: prevent division by zero in fb_videomode_from_videomode() 2024-11-19 09:23:15 +01:00
fbsysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
modedb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
softcursor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svgalib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
syscopyarea.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysfillrect.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysimgblt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tileblit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00