hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/acpi/acpica/utdelete.c
....@@ -257,6 +257,10 @@
257257
258258 acpi_ut_delete_object_desc(second_desc);
259259 }
260
+ if (object->field.internal_pcc_buffer) {
261
+ ACPI_FREE(object->field.internal_pcc_buffer);
262
+ }
263
+
260264 break;
261265
262266 case ACPI_TYPE_BUFFER_FIELD:
....@@ -279,6 +283,14 @@
279283 if (second_desc) {
280284 acpi_ut_delete_object_desc(second_desc);
281285 }
286
+ break;
287
+
288
+ case ACPI_TYPE_LOCAL_ADDRESS_HANDLER:
289
+
290
+ ACPI_DEBUG_PRINT((ACPI_DB_ALLOCATIONS,
291
+ "***** Address handler %p\n", object));
292
+
293
+ acpi_os_delete_mutex(object->address_space.context_mutex);
282294 break;
283295
284296 default:
....@@ -449,13 +461,13 @@
449461 *
450462 * FUNCTION: acpi_ut_update_object_reference
451463 *
452
- * PARAMETERS: object - Increment ref count for this object
453
- * and all sub-objects
464
+ * PARAMETERS: object - Increment or decrement the ref count for
465
+ * this object and all sub-objects
454466 * action - Either REF_INCREMENT or REF_DECREMENT
455467 *
456468 * RETURN: Status
457469 *
458
- * DESCRIPTION: Increment the object reference count
470
+ * DESCRIPTION: Increment or decrement the object reference count
459471 *
460472 * Object references are incremented when:
461473 * 1) An object is attached to a Node (namespace object)
....@@ -489,7 +501,7 @@
489501 }
490502
491503 /*
492
- * All sub-objects must have their reference count incremented
504
+ * All sub-objects must have their reference count updated
493505 * also. Different object types have different subobjects.
494506 */
495507 switch (object->common.type) {
....@@ -556,6 +568,7 @@
556568 break;
557569 }
558570 }
571
+
559572 next_object = NULL;
560573 break;
561574