diff options
| author | Nathan Lynch <[email protected]> | 2021-09-28 07:45:50 -0500 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-10-09 00:15:59 +1100 |
| commit | 56537faf8821e361d739fc5ff58c9c40f54a1d4c (patch) | |
| tree | a0f113789a60cfb1f3366add2ade67ce8327a59a /scripts/gdb/linux/lists.py | |
| parent | f2719b26ae27282c145202ffd656d5ff1fe737cc (diff) | |
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 <[email protected]>
Reviewed-by: Srikar Dronamraju <[email protected]>
Reviewed-by: Tyrel Datwyler <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions