Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186036
b: refs/heads/master
c: d7fa6ab
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and Marcelo Tosatti committed Mar 1, 2010
1 parent 8ceff74 commit 99aa550
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c04851c0c093ce98ab4ca69556480d779292418
refs/heads/master: d7fa6ab217aeed26293e01d7b64f79a1ac57e823
7 changes: 2 additions & 5 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2843,16 +2843,13 @@ static int alloc_mmu_pages(struct kvm_vcpu *vcpu)
*/
page = alloc_page(GFP_KERNEL | __GFP_DMA32);
if (!page)
goto error_1;
return -ENOMEM;

vcpu->arch.mmu.pae_root = page_address(page);
for (i = 0; i < 4; ++i)
vcpu->arch.mmu.pae_root[i] = INVALID_PAGE;

return 0;

error_1:
free_mmu_pages(vcpu);
return -ENOMEM;
}

int kvm_mmu_create(struct kvm_vcpu *vcpu)
Expand Down

0 comments on commit 99aa550

Please sign in to comment.