[PATCH] KVM: MMU: kvm_mmu_put_page() only removes one link to the page
authorAvi Kivity <avi@qumranet.com>
Sat, 6 Jan 2007 00:36:47 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:25 +0000 (23:55 -0800)
commitcc4529efc7b730b596d9c7d5a917c00a357e92aa
treeb62836e2986bc1d7583de50158f1933e9f65784b
parent697fe2e24ac49f03a82f6cfe5d77f7a2122ff382
[PATCH] KVM: MMU: kvm_mmu_put_page() only removes one link to the page

...  and so must not free it unconditionally.

Move the freeing to kvm_mmu_zap_page().

Signed-off-by: Avi Kivity <avi@qumranet.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/mmu.c