Dinghao Liu
f4dcf06bc6
ACPI: video: Fix NULL pointer dereference in acpi_video_bus_add()
...
acpi_video_bus_add_notify_handler() could free video->input and
set it to NULL on failure, but this failure would be missed in its
caller acpi_video_bus_add(). As a result, when an error happens in
acpi_dev_install_notify_handler(), acpi_video_bus_add() would call
acpi_video_bus_remove_notify_handler(), where a potential NULL pointer
video->input is dereferenced in input_unregister_device().
Fix this by adding a return value check and adjusting the following
error handling code.
Fixes: 6f7016819766 ("ACPI: video: Install Notify() handler directly")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2023-09-25 11:53:40 +02:00
..
2023-07-10 18:49:16 +02:00
2023-06-12 19:31:48 +02:00
2023-09-01 09:53:54 -07:00
2022-09-28 17:26:25 +02:00
2023-07-14 18:58:35 +02:00
2023-02-10 17:33:34 -08:00
2023-01-30 16:47:13 +01:00
2023-06-01 08:45:04 -07:00
2023-08-25 20:55:47 +02:00
2023-07-14 18:58:34 +02:00
2023-03-20 18:04:58 +01:00
2023-08-17 20:01:24 +02:00
2021-07-16 19:20:28 +02:00
2020-11-17 18:12:34 +01:00
2023-08-17 19:44:22 +02:00
2023-06-12 19:28:20 +02:00
2022-09-10 18:18:34 +02:00
2022-03-25 18:01:40 +01:00
2023-03-22 20:25:18 +01:00
2023-05-19 20:17:10 +02:00
2023-08-21 13:37:48 -07:00
2023-06-12 19:25:55 +02:00
2022-11-23 19:06:56 +01:00
2023-07-04 19:28:20 +02:00
2023-01-17 12:52:11 +01:00
2023-07-20 21:05:00 +02:00
2023-08-17 20:01:24 +02:00
2023-09-25 11:53:40 +02:00
2020-11-17 18:06:29 +01:00
2023-07-14 18:58:34 +02:00
2022-04-22 16:55:33 +02:00
2021-06-07 15:36:45 +02:00
2023-08-25 20:40:50 +02:00
2023-06-26 17:20:28 +02:00
2022-06-20 20:33:05 +02:00
2023-03-17 19:06:23 +01:00
2021-04-28 19:17:54 +02:00
2020-09-25 18:25:51 +02:00
2023-01-13 15:56:10 -06:00
2023-06-29 11:40:55 +02:00
2021-12-17 18:45:51 +01:00
2021-12-01 20:19:30 +01:00
2023-06-27 17:06:51 +02:00
2021-06-29 15:51:25 +02:00
2020-11-09 19:25:20 +01:00
2022-12-06 12:44:14 +01:00
2022-11-23 19:31:57 +01:00
2022-05-25 15:37:07 +02:00
2023-01-10 20:23:48 +01:00
2023-07-14 18:58:34 +02:00
2023-08-25 20:49:52 +02:00
2022-12-30 19:12:30 +01:00
2022-11-10 20:21:35 +01:00
2023-08-22 10:39:26 +02:00
2023-08-01 13:59:25 +02:00
2021-06-29 15:51:25 +02:00
2022-08-25 20:18:17 +02:00
2023-06-01 08:45:00 -07:00
2022-11-26 12:57:18 +00:00
2022-07-27 21:21:27 +02:00
2022-07-14 15:25:36 -05:00
2023-01-05 13:31:27 -08:00
2020-09-25 18:25:51 +02:00
2023-02-09 16:51:39 -08:00
2022-12-12 18:29:54 -08:00
2021-08-16 18:32:02 +02:00
2023-04-27 18:44:43 +02:00
2023-03-14 20:34:38 +01:00
2023-08-22 10:39:26 +02:00
2022-01-22 08:33:37 +02:00
2023-08-17 18:39:28 +02:00
2023-03-22 15:20:38 +01:00
2023-05-15 13:44:49 +02:00
2023-09-18 12:16:16 +02:00
2022-12-30 19:10:02 +01:00
2023-03-22 15:20:38 +01:00
2022-10-28 19:02:45 +02:00
2023-03-27 20:48:36 +02:00
2021-06-07 15:36:46 +02:00
2023-08-21 12:48:52 +02:00
2023-03-30 19:01:05 +02:00
2022-11-23 19:11:22 +01:00
2020-11-09 19:08:06 +01:00
2023-09-01 16:54:25 -07:00
2023-06-26 16:54:10 +02:00
2022-09-09 17:37:40 +02:00
2023-03-27 20:50:28 +02:00
2023-03-27 20:43:58 +02:00
2023-06-01 08:44:59 -07:00
2023-09-11 17:16:40 +02:00
2023-06-16 19:48:09 +02:00
2022-10-03 20:09:22 +02:00
2023-08-17 19:29:58 +02:00
2023-03-30 19:20:42 +02:00
2020-11-09 19:08:06 +01:00