aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-02-18 13:07:17 -0800
committerPaolo Bonzini <[email protected]>2020-03-16 17:57:15 +0100
commit13f678894bd0112582ea26e9b98db5118150d6a9 (patch)
treed5b361cb656b21d52054768f0c03981c3c419fe6 /tools/perf/scripts/python/syscall-counts.py
parent13ea525517088b20399aeb410d9fc567741ac27f (diff)
KVM: Don't free new memslot if allocation of said memslot fails
The two implementations of kvm_arch_create_memslot() in x86 and PPC are both good citizens and free up all local resources if creation fails. Return immediately (via a superfluous goto) instead of calling kvm_free_memslot(). Note, the call to kvm_free_memslot() is effectively an expensive nop in this case as there are no resources to be freed. No functional change intended. Acked-by: Christoffer Dall <[email protected]> Reviewed-by: Peter Xu <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions