提交 adbb48a8 编写于 作者: S Scott Wood 提交者: Alexander Graf

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

This was found by kmemleak.
Signed-off-by: NScott Wood <scottwood@freescale.com>
Signed-off-by: NAlexander Graf <agraf@suse.de>
上级 e400e72f
...@@ -1134,6 +1134,8 @@ static void free_gtlb(struct kvmppc_vcpu_e500 *vcpu_e500) ...@@ -1134,6 +1134,8 @@ static void free_gtlb(struct kvmppc_vcpu_e500 *vcpu_e500)
} }
vcpu_e500->num_shared_tlb_pages = 0; vcpu_e500->num_shared_tlb_pages = 0;
kfree(vcpu_e500->shared_tlb_pages);
vcpu_e500->shared_tlb_pages = NULL; vcpu_e500->shared_tlb_pages = NULL;
} else { } else {
kfree(vcpu_e500->gtlb_arch); kfree(vcpu_e500->gtlb_arch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册