Skip to content

Commit

Permalink
platform/x86: alienware-wmi: Correct a memory leak
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Mario Limonciello authored and dvhart committed Sep 10, 2018
1 parent affab51 commit ff0e9f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/platform/x86/alienware-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ static acpi_status alienware_wmax_command(struct wmax_basic_args *in_args,
if (obj && obj->type == ACPI_TYPE_INTEGER)
*out_data = (u32) obj->integer.value;
}
kfree(output.pointer);
return status;

}
Expand Down

0 comments on commit ff0e9f2

Please sign in to comment.