summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/mmiowb.h
diff options
context:
space:
mode:
authorNathan Lynch <nathanl@linux.ibm.com>2021-09-28 07:45:50 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2021-10-09 00:15:59 +1100
commit56537faf8821e361d739fc5ff58c9c40f54a1d4c (patch)
treea0f113789a60cfb1f3366add2ade67ce8327a59a /arch/powerpc/include/asm/mmiowb.h
parentf2719b26ae27282c145202ffd656d5ff1fe737cc (diff)
downloadlinux-56537faf8821e361d739fc5ff58c9c40f54a1d4c.tar.gz
powerpc: fix unbalanced node refcount in check_kvm_guest()
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. Fixes: 107c55005fbd ("powerpc/pseries: Add KVM guest doorbell restrictions") Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210928124550.132020-1-nathanl@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/mmiowb.h')
0 files changed, 0 insertions, 0 deletions