Skip to content
Commit 46d4e747 authored by Markus Elfring's avatar Markus Elfring Committed by Paul Mackerras
Browse files

KVM: PPC: e500: Less function calls in kvm_vcpu_ioctl_config_tlb() after error detection



The kfree() function was called in two cases by the
kvm_vcpu_ioctl_config_tlb() function during error handling
even if the passed data structure element contained a null pointer.

* Split a condition check for memory allocation failures.

* Adjust jump targets according to the Linux coding style convention.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
parent f3c0ce86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment