瀏覽代碼

platform/x86: alienware-wmi: Correct a memory leak

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>
Mario Limonciello 7 年之前
父節點
當前提交
ff0e9f2628
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/platform/x86/alienware-wmi.c

+ 1 - 0
drivers/platform/x86/alienware-wmi.c

@@ -536,6 +536,7 @@ static acpi_status alienware_wmax_command(struct wmax_basic_args *in_args,
 		if (obj && obj->type == ACPI_TYPE_INTEGER)
 		if (obj && obj->type == ACPI_TYPE_INTEGER)
 			*out_data = (u32) obj->integer.value;
 			*out_data = (u32) obj->integer.value;
 	}
 	}
+	kfree(output.pointer);
 	return status;
 	return status;
 
 
 }
 }