]> git.ipfire.org Git - people/ms/linux.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)
commit2ea3b19792dbe32287b0c48f3ff7e866f61967c7
tree248e101f88b34f1969c1f7f491533d398db0e853
parent06865077b34c792181e3c4f82417a2888c6e7453
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: 1d52f10917a7 ("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