Skip to content

Commit ff0e9f2

Browse files
Mario Limonciellodvhart
authored andcommitted
platform/x86: alienware-wmi: Correct a memory leak
An ACPI buffer that was allocated was not being freed after use. Signed-off-by: Mario Limonciello <mario.limonciello@dell.com> Cc: stable@vger.kernel.org Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
1 parent affab51 commit ff0e9f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/x86/alienware-wmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ static acpi_status alienware_wmax_command(struct wmax_basic_args *in_args,
536536
if (obj && obj->type == ACPI_TYPE_INTEGER)
537537
*out_data = (u32) obj->integer.value;
538538
}
539+
kfree(output.pointer);
539540
return status;
540541

541542
}

0 commit comments

Comments
 (0)