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