Roman Smirnov 664206ff8b 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:05:21 +02:00
..
2023-11-08 14:11:00 +01:00
2020-01-15 17:31:50 +01:00
2022-10-05 11:24:12 -07:00
2022-06-20 18:21:25 +02:00
2020-02-19 10:58:22 -08:00
2022-10-05 11:24:12 -07:00
2022-10-05 11:24:12 -07:00
2024-01-25 15:27:38 -08:00
2023-10-06 14:56:58 +02:00
2020-01-30 08:04:01 -08:00
2020-01-30 08:04:01 -08:00
2020-01-30 08:04:01 -08:00
2022-03-24 16:19:43 -07:00
2022-10-05 11:24:12 -07:00
2020-01-30 08:04:01 -08:00
2022-09-06 10:56:04 +02:00
2022-10-05 11:24:12 -07:00
2022-10-05 11:24:12 -07:00
2022-10-05 11:24:12 -07:00
2022-10-05 11:24:12 -07:00
2023-05-30 14:03:20 +01:00
2022-09-06 10:56:04 +02:00