Commit 28330dcc authored by Won Chung's avatar Won Chung Committed by Greg Kroah-Hartman

driver core: location: Free struct acpi_pld_info *pld

After struct acpi_pld_info *pld is used to fill in physical location
values, it should be freed to prevent memleak.
Suggested-by: default avatarYu Watanabe <watanabe.yu@gmail.com>
Signed-off-by: default avatarWon Chung <wonchung@google.com>
Link: https://lore.kernel.org/r/20220509173135.3515126-1-wonchung@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f79f662e
......@@ -32,6 +32,7 @@ bool dev_add_physical_location(struct device *dev)
dev->physical_location->dock = pld->dock;
dev->physical_location->lid = pld->lid;
ACPI_FREE(pld);
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment