Merge branch 'for-next/psci' into for-next/core

* for-next/psci:
  firmware: psci: Fix refcount leak in psci_dt_init
This commit is contained in:
Will Deacon 2025-05-27 12:26:22 +01:00
commit 3b9552cf34

View File

@ -804,8 +804,10 @@ int __init psci_dt_init(void)
np = of_find_matching_node_and_match(NULL, psci_of_match, &matched_np);
if (!np || !of_device_is_available(np))
if (!np || !of_device_is_available(np)) {
of_node_put(np);
return -ENODEV;
}
init_fn = (psci_initcall_t)matched_np->data;
ret = init_fn(np);