Files
linux/drivers/video/fbdev/core
Roman Smirnov 3d4b909704 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-04-13 13:07:40 +02:00
..
2023-05-18 11:07:54 +02:00
2021-04-10 11:12:08 +02:00
2020-11-17 11:00:43 +01:00
2023-06-27 09:58:51 +02:00
2023-09-18 10:52:55 +02:00
2020-11-17 11:00:43 +01:00
2023-08-18 10:18:59 -07:00