]> 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)
commit1ddd3422ed6d0e956f9bb24e00a43bcece6ab490
tree248e101f88b34f1969c1f7f491533d398db0e853
parent3713cbd4e5edf2135e421b969d99e081b9f9b392
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: 0ca13b58b36d ("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