Files
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
..
2023-08-04 15:54:35 +02:00
2023-08-04 15:54:35 +02:00
2023-08-04 15:54:35 +02:00
2023-08-24 07:26:06 +10:00
2023-08-04 15:54:36 +02:00
2024-01-11 17:09:01 +01:00
2024-01-18 21:10:41 +01:00
2023-08-04 15:54:36 +02:00
2023-08-04 15:54:37 +02:00
2023-11-07 14:42:34 +01:00
2023-08-04 15:54:37 +02:00
2023-08-04 15:54:38 +02:00
2023-08-04 15:54:38 +02:00
2024-01-18 21:10:41 +01:00
2023-08-04 15:54:38 +02:00
2024-01-18 21:10:41 +01:00
2023-08-04 15:54:38 +02:00