Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87126
b: refs/heads/master
c: 4357bd9
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell committed Mar 10, 2008
1 parent 2734f06 commit 784eac0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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: 3fabc55f34b72720e8a10aa442bd3415a211edb3
refs/heads/master: 4357bd9453b81e0a41db1dec16e06d74256b7560
2 changes: 1 addition & 1 deletion trunk/arch/x86/lguest/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ static void lguest_set_pmd(pmd_t *pmdp, pmd_t pmdval)
{
*pmdp = pmdval;
lazy_hcall(LHCALL_SET_PMD, __pa(pmdp)&PAGE_MASK,
(__pa(pmdp)&(PAGE_SIZE-1)), 0);
(__pa(pmdp)&(PAGE_SIZE-1))/4, 0);
}

/* There are a couple of legacy places where the kernel sets a PTE, but we
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/lguest/page_tables.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ static unsigned int find_pgdir(struct lguest *lg, unsigned long pgtable)
{
unsigned int i;
for (i = 0; i < ARRAY_SIZE(lg->pgdirs); i++)
if (lg->pgdirs[i].gpgdir == pgtable)
if (lg->pgdirs[i].pgdir && lg->pgdirs[i].gpgdir == pgtable)
break;
return i;
}
Expand Down

0 comments on commit 784eac0

Please sign in to comment.