]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: property: Ignore already existing data node tags
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 24 Aug 2022 11:59:56 +0000 (14:59 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Aug 2022 11:29:02 +0000 (13:29 +0200)
commitf8efc50f73b90a8631d22c0d47b7e19516dc660c
tree248e101f88b34f1969c1f7f491533d398db0e853
parent72090e0703ee271e3e2f2f0a6d73f6ac26eb5633
ACPI: property: Ignore already existing data node tags

ACPI node pointers are attached to data node handles, in order to resolve
string references to them. _DSD guide allows the same node to be reached
from multiple parent nodes, leading the node enumeration algorithm to each
such nodes more than once. As attached data already already exists,
attaching data with the same tag will fail. Address this problem by
ignoring nodes that have been already tagged.

Fixes: 125b13a440a9 ("ACPI: property: Tie data nodes to acpi handles")
Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/property.c