summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorYige Jiang <yigejiang86@gmail.com>2026-11-24 01:19:23 +0800
committerUlf Hansson <ulfh@kernel.org>2026-11-26 13:47:40 +0100
commit42b59cfdc681c5a55a974809c61f00ac708d36e1 (patch)
tree745d181a48b2384e3ad7a329038fc2f5494a5fa0 /tools/lib/python
parentfaa6cd23f6269990b09ec63849239aae5cdb238b (diff)
pmdomain: imx: gpcv2: Take a reference to each PGC node
The child-node iterator owns the reference to each PGC node, but imx_gpcv2_probe() assigns the node to a newly allocated platform device without taking another reference. If platform_device_add() fails, platform_device_put() releases the node through platform_device_release(), and the iterator then drops the same reference again. Use platform_device_set_of_node() to give the child device its own node reference, paired with the put in platform_device_release(). Fixes: 03aa12629fc4 ("soc: imx: Add GPCv2 power gating driver") Cc: stable@vger.kernel.org Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://lore.kernel.org/r/20260530004541.E04701F00898@smtp.kernel.org/ Signed-off-by: Yige Jiang <yigejiang86@gmail.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions