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 <[email protected]> Cc: [email protected] Signed-off-by: Darren Hart (VMware) <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ff68050 commit e2d5285

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
@@ -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)