diff options
author | Yu Liao <[email protected]> | 2022-11-29 09:11:01 +0800 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2022-12-08 16:32:12 +0100 |
commit | 727cc0147f5066e359aca65cc6cc5e6d64cc15d8 (patch) | |
tree | 7121d20633e71248e3abc1510039197275768247 /drivers/fpga/fpga-mgr.c | |
parent | b03ae77e7e057f4b3b858f10c840557e71448a91 (diff) |
platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]()
The ACPI buffer memory (out.pointer) returned by wmi_evaluate_method()
is not freed after the call, so it leads to memory leak.
The method results in ACPI buffer is not used, so just pass NULL to
wmi_evaluate_method() which fixes the memory leak.
Fixes: 99b38b4acc0d ("platform/x86: add MXM WMI driver.")
Signed-off-by: Yu Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions