KVM: PPC: e500: Less function calls in kvm_vcpu_ioctl_config_tlb() after error detection
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 28 Aug 2016 15:34:46 +0000 (17:34 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 12 Sep 2016 00:12:46 +0000 (10:12 +1000)
commit46d4e7479252d3fd82a0ea121daef75164a91939
tree5145adab0abec1bc16384e036e53d2597683426c
parentf3c0ce86a8da6a43c3551a2223abd42040316dd8
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/e500_mmu.c