diff options
author | Scott Wood <scottwood@freescale.com> | 2012-08-22 17:04:24 +0200 |
---|---|---|
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 | KVM: PPC: e500: fix allocation size error on g2h_tlb1_map (diff) | |
download | linux-adbb48a854bf8dee556dc42b96dd61503351a82d.tar.xz linux-adbb48a854bf8dee556dc42b96dd61503351a82d.zip |
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 '')
-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 a27d134eef36..641f97847b95 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); |