Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adbb48a8 authored by Scott Wood's avatar Scott Wood Committed by Alexander Graf
Browse files

KVM: PPC: e500: MMU API: fix leak of shared_tlb_pages



This was found by kmemleak.

Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent e400e72f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1134,6 +1134,8 @@ static void free_gtlb(struct kvmppc_vcpu_e500 *vcpu_e500)
		}

		vcpu_e500->num_shared_tlb_pages = 0;

		kfree(vcpu_e500->shared_tlb_pages);
		vcpu_e500->shared_tlb_pages = NULL;
	} else {
		kfree(vcpu_e500->gtlb_arch);