]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Remove some useless code from alloc_mmu_pages()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 22 Jan 2010 08:55:05 +0000 (16:55 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:05 +0000 (12:36 -0300)
commitcafbe63983e95fff0b2c63f23aa3e2b3affae184
tree3a9a3d829ca9e3df18d43aa01591ee3635828c4e
parent523f20c1e18501a8422857e5a63cd5811f63d641
KVM: MMU: Remove some useless code from alloc_mmu_pages()

If we fail to alloc page for vcpu->arch.mmu.pae_root, call to
free_mmu_pages() is unnecessary, which just do free the page
malloc for vcpu->arch.mmu.pae_root.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c