projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a36be10
)
KVM: PPC: e500: Call kvm_vcpu_uninit() before kvmppc_e500_tlb_uninit().
author
Scott Wood
<
[email protected]
>
Tue, 5 Oct 2010 19:22:41 +0000
(14:22 -0500)
committer
Marcelo Tosatti
<
[email protected]
>
Fri, 5 Nov 2010 16:42:28 +0000
(14:42 -0200)
The VCPU uninit calls some TLB functions, and the TLB uninit function
frees the memory used by them.
Signed-off-by: Scott Wood <
[email protected]
>
Acked-by: Liu Yu <
[email protected]
>
Signed-off-by: Alexander Graf <
[email protected]
>
arch/powerpc/kvm/e500.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/e500.c
b/arch/powerpc/kvm/e500.c
index 71750f2dd5d34378c963acf7bf9d3a69a15863cc..e3768ee9b59537bf92eceb853fa9edf56d7d5b6c 100644
(file)
--- a/
arch/powerpc/kvm/e500.c
+++ b/
arch/powerpc/kvm/e500.c
@@
-138,8
+138,8
@@
void kvmppc_core_vcpu_free(struct kvm_vcpu *vcpu)
struct kvmppc_vcpu_e500 *vcpu_e500 = to_e500(vcpu);
free_page((unsigned long)vcpu->arch.shared);
- kvmppc_e500_tlb_uninit(vcpu_e500);
kvm_vcpu_uninit(vcpu);
+ kvmppc_e500_tlb_uninit(vcpu_e500);
kmem_cache_free(kvm_vcpu_cache, vcpu_e500);
}