mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
for_each_child_of_node_scoped() decrements the reference count of the
nod after each iteration. Assigning it without incrementing the refcount
to a dynamically allocated platform device will result in a double put
in platform_device_release(). Add the missing call to of_node_get().
Cc: [email protected]
Fixes: 3e4d109ee8 ("pmdomain: imx: gpc: Simplify with scoped for each OF child loop")
Signed-off-by: Bartosz Golaszewski <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>