]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
platform/x86: alienware-wmi: Correct a memory leak
authorMario Limonciello <mario.limonciello@dell.com>
Mon, 10 Sep 2018 18:01:53 +0000 (13:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Sep 2018 10:07:32 +0000 (03:07 -0700)
commit ff0e9f26288d2daee4950f42b37a3d3d30d36ec1 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>
drivers/platform/x86/alienware-wmi.c

index 005629447b0ce624b24ed02835e3d9314065a50a..fe419935041c14a9148a93353f068eb7a318b549 100644 (file)
@@ -518,6 +518,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;
 
 }