Roman Smirnov
72d091b751
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 12:51:39 +02:00
..
2023-11-08 11:23:40 +01:00
2024-04-13 12:51:39 +02:00
2023-04-05 11:16:43 +02:00
2023-04-05 11:16:42 +02:00
2021-09-22 12:26:29 +02:00
2023-06-09 10:29:01 +02:00
2019-07-09 09:55:45 -07:00
2019-06-28 12:30:08 +02:00
2023-08-30 16:27:15 +02:00
2023-04-05 11:16:42 +02:00
2023-07-27 08:37:15 +02:00
2022-04-15 14:18:24 +02:00
2023-06-09 10:29:01 +02:00
2024-03-01 13:13:33 +01:00
2024-03-01 13:13:33 +01:00
2023-01-18 11:41:27 +01:00
2024-04-13 12:51:39 +02:00
2019-08-20 19:44:01 -05:00
2019-06-19 17:09:55 +02:00
2022-08-25 11:18:06 +02:00
2019-06-28 12:30:08 +02:00
2022-08-25 11:18:09 +02:00
2021-09-22 12:26:29 +02:00
2019-04-01 17:46:55 +02:00
2019-04-01 17:46:55 +02:00
2019-04-01 17:46:55 +02:00
2019-04-01 17:46:55 +02:00
2022-04-15 14:18:02 +02:00
2022-04-15 14:18:07 +02:00
2019-06-03 16:00:08 +02:00
2019-06-03 16:00:08 +02:00
2023-07-27 08:37:44 +02:00
2019-05-21 10:50:45 +02:00
2019-11-04 10:48:14 +01:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2022-09-15 12:04:54 +02:00
2022-04-15 14:18:23 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:39 +02:00
2019-06-21 15:13:14 +02:00
2019-05-30 11:26:32 -07:00
2019-07-09 09:55:45 -07:00
2019-06-19 17:09:55 +02:00
2019-08-26 17:54:00 +05:30
2019-05-21 10:50:45 +02:00
2020-08-26 10:41:04 +02:00
2023-09-23 10:59:57 +02:00
2019-06-19 17:09:55 +02:00
2019-05-21 10:50:45 +02:00
2023-11-20 10:30:16 +01:00
2021-10-13 10:08:19 +02:00
2019-06-05 17:36:37 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2021-05-26 12:05:21 +02:00
2019-05-21 10:50:45 +02:00
2021-01-12 20:16:17 +01:00
2022-08-25 11:18:38 +02:00
2023-11-20 10:30:16 +01:00
2023-07-27 08:37:43 +02:00
2023-10-10 21:46:40 +02:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:25:16 -07:00
2019-09-22 09:30:30 -07:00
2019-06-19 17:09:55 +02:00
2020-08-19 08:16:00 +02:00
2019-02-08 19:24:46 +01:00
2019-05-21 10:50:45 +02:00
2019-06-28 12:30:08 +02:00
2023-01-18 11:41:26 +01:00
2023-06-09 10:29:01 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2020-09-03 11:27:09 +02:00
2020-11-05 11:43:15 +01:00
2022-09-28 11:03:59 +02:00
2020-02-24 08:36:25 +01:00
2020-08-19 08:16:06 +02:00
2019-08-26 10:02:02 +02:00
2019-05-06 15:57:47 +02:00
2019-07-09 09:55:45 -07:00
2022-08-25 11:18:09 +02:00
2019-08-26 10:02:02 +02:00
2019-08-26 10:02:02 +02:00
2019-06-14 14:21:11 -06:00
2019-08-19 15:52:26 +02:00
2019-06-12 20:28:11 +02:00
2019-06-05 17:36:37 +02:00
2019-08-02 13:22:37 +02:00
2019-04-01 17:46:59 +02:00
2022-04-15 14:18:25 +02:00
2023-02-22 12:50:29 +01:00
2019-07-23 17:26:56 +02:00
2019-05-21 10:50:45 +02:00
2023-12-08 08:44:27 +01:00
2023-06-09 10:28:55 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2019-06-28 12:30:08 +02:00
2019-05-21 10:50:45 +02:00
2019-05-21 10:50:45 +02:00
2023-04-05 11:16:42 +02:00
2019-05-30 11:26:41 -07:00
2019-05-21 10:50:45 +02:00
2023-05-30 12:44:09 +01:00
2023-11-08 11:23:41 +01:00
2019-01-22 10:21:45 +01:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2020-10-29 09:57:38 +01:00
2020-06-17 16:40:33 +02:00
2019-06-05 17:36:37 +02:00
2022-08-25 11:18:09 +02:00
2022-04-15 14:18:23 +02:00
2019-06-19 17:09:55 +02:00
2019-06-05 17:36:37 +02:00
2019-08-02 13:20:22 +02:00
2019-06-05 17:36:37 +02:00
2019-04-01 17:46:57 +02:00