diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2022-04-06 16:12:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-09 10:21:23 +0200 |
commit | a2b9edc3f8946463028aea2ed30a7cee65e0e8a9 (patch) | |
tree | 516c023d15bfa24ab6e5e2f7531a8bbd79251bfe /kernel | |
parent | ff4cafa51762da3824881a9000ca421d4b78b138 (diff) | |
download | linux-stable-a2b9edc3f8946463028aea2ed30a7cee65e0e8a9.tar.gz linux-stable-a2b9edc3f8946463028aea2ed30a7cee65e0e8a9.tar.bz2 linux-stable-a2b9edc3f8946463028aea2ed30a7cee65e0e8a9.zip |
ACPI: property: Release subnode properties with data nodes
commit 3bd561e1572ee02a50cd1a5be339abf1a5b78d56 upstream.
struct acpi_device_properties describes one source of properties present
on either struct acpi_device or struct acpi_data_node. When properties are
parsed, both are populated but when released, only those properties that
are associated with the device node are freed.
Fix this by also releasing memory of the data node properties.
Fixes: 5f5e4890d57a ("ACPI / property: Allow multiple property compatible _DSD entries")
Cc: 4.20+ <stable@vger.kernel.org> # 4.20+
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions