forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/acpi/acpica/evmisc.c
....@@ -3,7 +3,7 @@
33 *
44 * Module Name: evmisc - Miscellaneous event manager support functions
55 *
6
- * Copyright (C) 2000 - 2018, Intel Corp.
6
+ * Copyright (C) 2000 - 2020, Intel Corp.
77 *
88 *****************************************************************************/
99
....@@ -230,11 +230,15 @@
230230 /* Disable all GPEs in all GPE blocks */
231231
232232 status = acpi_ev_walk_gpe_list(acpi_hw_disable_gpe_block, NULL);
233
+ if (ACPI_FAILURE(status)) {
234
+ ACPI_EXCEPTION((AE_INFO, status,
235
+ "Could not disable GPEs in GPE block"));
236
+ }
233237
234238 status = acpi_ev_remove_global_lock_handler();
235239 if (ACPI_FAILURE(status)) {
236
- ACPI_ERROR((AE_INFO,
237
- "Could not remove Global Lock handler"));
240
+ ACPI_EXCEPTION((AE_INFO, status,
241
+ "Could not remove Global Lock handler"));
238242 }
239243
240244 acpi_gbl_events_initialized = FALSE;
....@@ -250,6 +254,10 @@
250254 /* Deallocate all handler objects installed within GPE info structs */
251255
252256 status = acpi_ev_walk_gpe_list(acpi_ev_delete_gpe_handlers, NULL);
257
+ if (ACPI_FAILURE(status)) {
258
+ ACPI_EXCEPTION((AE_INFO, status,
259
+ "Could not delete GPE handlers"));
260
+ }
253261
254262 /* Return to original mode if necessary */
255263