]> git.baikalelectronics.ru Git - kernel.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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Apr 2022 17:54:47 +0000 (19:54 +0200)
commit9a2a336f6badda786befa41ab652887c73dc888f
tree6103bdb4c3222490ad7c1dcbf810f1aff89cbaae
parentd497d8e7eec6dcbda0ae107079607d2bc8ddf3cb
ACPI: property: Release subnode properties with data nodes

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: 462f2390870c ("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>
drivers/acpi/property.c