]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: property: Release subnode properties with data nodes
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 6 Apr 2022 13:12:08 +0000 (16:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:19 +0000 (10:26 +0200)
commit2e7cfcc11f4ef3592c10eb40217ec815a96d2d56
treec9244545166fb807da63a61065b3156ac85ec408
parentd5a16a6df2c16eaf4de04948553ef0089dee463f
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>
drivers/acpi/property.c