We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3557a45 + 7ff37d2 commit 3b9552cCopy full SHA for 3b9552c
1 file changed
drivers/firmware/psci/psci.c
@@ -804,8 +804,10 @@ int __init psci_dt_init(void)
804
805
np = of_find_matching_node_and_match(NULL, psci_of_match, &matched_np);
806
807
- if (!np || !of_device_is_available(np))
+ if (!np || !of_device_is_available(np)) {
808
+ of_node_put(np);
809
return -ENODEV;
810
+ }
811
812
init_fn = (psci_initcall_t)matched_np->data;
813
ret = init_fn(np);
0 commit comments