diff options
author | Scott Wood <scottwood@freescale.com> | 2012-08-22 15:04:24 +0000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-10-05 23:38:53 +0200 |
commit | adbb48a854bf8dee556dc42b96dd61503351a82d (patch) | |
tree | cd918e87e6aba769fa232810dc6b7cd3679b2aaf /arch/powerpc/kvm/e500_tlb.c | |
parent | e400e72f250d2567e89c9bafb47ab91e8d9a15a2 (diff) |
KVM: PPC: e500: MMU API: fix leak of shared_tlb_pages
This was found by kmemleak.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/e500_tlb.c')
-rw-r--r-- | arch/powerpc/kvm/e500_tlb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c index a27d134eef3..641f97847b9 100644 --- a/arch/powerpc/kvm/e500_tlb.c +++ b/arch/powerpc/kvm/e500_tlb.c @@ -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); |