Skip to contentSkip to conversation

Mutex memory leak fix

PATCH Applied Erik Kaneda 2 participants 3 messages May 21, 2021 – May 24, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Mutex memory leak fix

Hi Rafael, we fixed a memory leak from a patch that was added to kernel in the previous ACPICA release. Please take this patch for the rc series.

Thanks,

Erik

Erik Kaneda (1):
ACPICA: Clean up context mutex during object deletion

 drivers/acpi/acpica/utdelete.c | 8 ++++++++
 1 file changed, 8 insertions(+)
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 ACPICA: Clean up context mutex during object deletion

ACPICA commit bc43c878fd4ff27ba75b1d111b97ee90d4a82707

Fixes c27f3d011b08 ("Fix race in GenericSerialBus (I2C) and GPIO OpRegion parameter handling")
---
 drivers/acpi/acpica/utdelete.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/acpi/acpica/utdelete.c +8 -0
index 624a26794d55..e5ba9795ec69 100644
@@ -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;
Signature · 1 line
2.29.2
maintainer Applied
#2 lore raw

Re: [PATCH 1/1] ACPICA: Clean up context mutex during object deletion

Quoted 25 lines · Erik Kaneda

ACPICA commit bc43c878fd4ff27ba75b1d111b97ee90d4a82707

Fixes c27f3d011b08 ("Fix race in GenericSerialBus (I2C) and GPIO OpRegion parameter handling")
---
 drivers/acpi/acpica/utdelete.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/acpi/acpica/utdelete.c +2 -0
index 624a26794d55..e5ba9795ec69 100644
@@ -285,6 +285,14 @@ static void acpi_ut_delete_internal_obj(union acpi_operand_object *object)
                }
                break;
 
+       case ACPI_TYPE_LOCAL_ADDRESS_HANDLER:
+

drivers/acpi/acpica/utdelete.c static void acpi_ut_delete_internal_obj(union acpi_operand_object *object)

Quoted 10 lines
drivers/acpi/acpica/utdelete.c +6 -1
+               ACPI_DEBUG_PRINT((ACPI_DB_ALLOCATIONS,
+                                 "***** Address handler %p\n", object));
+
+               acpi_os_delete_mutex(object->address_space.context_mutex);
+               break;
+
        default:
 
                break;
--

Applied as 5.13-rc material, thanks!