Skip to content

Commit c827ed0

Browse files
acpibobgregkh
authored andcommitted
ACPICA: Fix memory leak on unusual memory leak
[ Upstream commit 1c29c37 ] Fixes a single-object memory leak on a store-to-reference method invocation. ACPICA BZ 1439. Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Erik Schmauss <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bf9b263 commit c827ed0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/acpi/acpica/psargs.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,10 @@ acpi_ps_get_next_arg(struct acpi_walk_state *walk_state,
890890
ACPI_POSSIBLE_METHOD_CALL);
891891

892892
if (arg->common.aml_opcode == AML_INT_METHODCALL_OP) {
893+
894+
/* Free method call op and corresponding namestring sub-ob */
895+
896+
acpi_ps_free_op(arg->common.value.arg);
893897
acpi_ps_free_op(arg);
894898
arg = NULL;
895899
walk_state->arg_count = 1;

0 commit comments

Comments
 (0)