projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e400e72
)
KVM: PPC: e500: MMU API: fix leak of shared_tlb_pages
author
Scott Wood
<scottwood@freescale.com>
Wed, 22 Aug 2012 15:04:24 +0000
(15:04 +0000)
committer
Alexander Graf
<agraf@suse.de>
Fri, 5 Oct 2012 21:38:53 +0000
(23:38 +0200)
This was found by kmemleak.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/e500_tlb.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/kvm/e500_tlb.c
b/arch/powerpc/kvm/e500_tlb.c
index a27d134eef3674f98ba1535931582c8106e4291c..641f97847b95a847cce3f6d437f60f4ce359ad69 100644
(file)
--- 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);