Re: [PATCH] powerpc: fix unbalanced node refcount in check_kvm_guest()

2021-10-11 Thread Michael Ellerman
On Tue, 28 Sep 2021 07:45:50 -0500, Nathan Lynch wrote: > When check_kvm_guest() succeeds in looking up a /hypervisor OF node, it > returns without performing a matching put for the lookup, leaving the > node's reference count elevated. > > Add the necessary call to of_node_put(), rearranging the

Re: [PATCH] powerpc: fix unbalanced node refcount in check_kvm_guest()

2021-09-29 Thread Srikar Dronamraju
* Nathan Lynch [2021-09-28 07:45:50]: > When check_kvm_guest() succeeds in looking up a /hypervisor OF node, it > returns without performing a matching put for the lookup, leaving the > node's reference count elevated. > > Add the necessary call to of_node_put(), rearranging the code slightly to

Re: [PATCH] powerpc: fix unbalanced node refcount in check_kvm_guest()

2021-09-28 Thread Tyrel Datwyler
On 9/28/21 5:45 AM, Nathan Lynch wrote: > When check_kvm_guest() succeeds in looking up a /hypervisor OF node, it > returns without performing a matching put for the lookup, leaving the > node's reference count elevated. > > Add the necessary call to of_node_put(), rearranging the code slightly to

[PATCH] powerpc: fix unbalanced node refcount in check_kvm_guest()

2021-09-28 Thread Nathan Lynch
When check_kvm_guest() succeeds in looking up a /hypervisor OF node, it returns without performing a matching put for the lookup, leaving the node's reference count elevated. Add the necessary call to of_node_put(), rearranging the code slightly to avoid repetition or goto. Signed-off-by: Nathan