mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 10:11:52 -04:00
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>
This commit is contained in:
committed by
Alexander Graf
parent
e400e72f25
commit
adbb48a854
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user