Thread (5 messages) 5 messages, 3 authors, 2021-05-19

Re: [bug report] Memory leak from acpi_ev_install_space_handler()

From: John Garry <hidden>
Date: 2021-05-19 08:21:55
Also in: lkml

On 18/05/2021 22:48, Kaneda, Erik wrote:
Hi John,
quoted
I don't mind looking further if requested.
Someone else reported this as well. 
I noticed. By chance, it was my close colleague Xiang Chen.

Could you try the patch below? I think it might help fix this issue..

It looks like the same problem, and you provided the same solution, so 
we can look to test it.

Thanks
quoted hunk ↗ jump to hunk
Thanks,
Erik
diff --git a/drivers/acpi/acpica/utdelete.c b/drivers/acpi/acpica/utdelete.c
index 624a26794d55..e5ba9795ec69 100644
--- a/drivers/acpi/acpica/utdelete.c
+++ b/drivers/acpi/acpica/utdelete.c
@@ -285,6 +285,14 @@ static void acpi_ut_delete_internal_obj(union acpi_operand_object *object)
                 }
                 break;

+       case ACPI_TYPE_LOCAL_ADDRESS_HANDLER:
+
+               ACPI_DEBUG_PRINT((ACPI_DB_ALLOCATIONS,
+                                 "***** Address handler %p\n", object));
+
+               acpi_os_delete_mutex(object->address_space.context_mutex);
+               break;
+
         default:

                 break;
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help