Skip to content

Commit eba2d6b

Browse files
committed
Merge tag 'platform-drivers-x86-v4.19-2' of git://git.infradead.org/linux-platform-drivers-x86
Darren writes: "platform-drivers-x86 for v4.19-2 Free allocated ACPI buffers in two drivers. The following is an automated git shortlog grouped by driver: alienware-wmi: - Correct a memory leak dell-smbios-wmi: - Correct a memory leak" * tag 'platform-drivers-x86-v4.19-2' of git://git.infradead.org/linux-platform-drivers-x86: platform/x86: alienware-wmi: Correct a memory leak platform/x86: dell-smbios-wmi: Correct a memory leak
2 parents 5211da9 + ff0e9f2 commit eba2d6b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-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
}

drivers/platform/x86/dell-smbios-wmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ static int run_smbios_call(struct wmi_device *wdev)
7878
dev_dbg(&wdev->dev, "result: [%08x,%08x,%08x,%08x]\n",
7979
priv->buf->std.output[0], priv->buf->std.output[1],
8080
priv->buf->std.output[2], priv->buf->std.output[3]);
81+
kfree(output.pointer);
8182

8283
return 0;
8384
}

0 commit comments

Comments
 (0)