Skip to content

Commit e2d5285

Browse files
Mario Limonciellogregkh
authored andcommitted
platform/x86: alienware-wmi: Correct a memory leak
commit ff0e9f2 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ff68050 commit e2d5285

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/platform/x86/alienware-wmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ static acpi_status alienware_wmax_command(struct wmax_basic_args *in_args,
519519
if (obj && obj->type == ACPI_TYPE_INTEGER)
520520
*out_data = (u32) obj->integer.value;
521521
}
522+
kfree(output.pointer);
522523
return status;
523524

524525
}

0 commit comments

Comments
 (0)