Thread (4 messages) flat view 4 messages, 4 authors, 2021-10-11

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

From: Tyrel Datwyler <tyreld@linux.ibm.com>
Date: 2021-09-28 18:58:08

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
avoid repetition or goto.

Signed-off-by: Nathan Lynch <redacted>
Fixes: 107c55005fbd ("powerpc/pseries: Add KVM guest doorbell restrictions")
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help