Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3ff268a authored by Lin Ming's avatar Lin Ming Committed by Andi Kleen
Browse files

ACPICA: Fix possible memory leak in Unload() operator



The DdbHandle returned by Load() does not have its reference count
decremented during unload, leading to a memory leak. Lin Ming.

Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
parent 2843ae77
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -479,5 +479,8 @@ acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle)


	acpi_tb_set_table_loaded_flag(table_index, FALSE);
	acpi_tb_set_table_loaded_flag(table_index, FALSE);


	/* Table unloaded, remove a reference to the ddb_handle object */

	acpi_ut_remove_reference(ddb_handle);
	return_ACPI_STATUS(AE_OK);
	return_ACPI_STATUS(AE_OK);
}
}