Skip to content
Commit 605c27f3 authored by Liang He's avatar Liang He Committed by Michael Ellerman
Browse files

powerpc/powernv: Add missing of_node_put()s



In these driver init functions, there are two kinds of errors:

(1) missing of_put_node() for of_find_compatible_node()'s returned
    pointer (refcount incremented)  in fail path or when it is not
    used anymore.
(2) missing of_put_node() for 'for_each_xxx' loop's break

Signed-off-by: default avatarLiang He <windhl@126.com>
[mpe: Use out_put_xxx goto label naming]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220620132553.4073863-1-windhl@126.com
parent afa6a472
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment