Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163333
b: refs/heads/master
c: 05dd2cd
h: refs/heads/master
i:
  163331: fa14fbe
v: v3
  • Loading branch information
Matt Fleming authored and Paul Mundt committed Jul 13, 2009
1 parent fbfe99b commit fc2ad17
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 3e28ad7b2442e02c35c2fee2d85a90d0202a9aad
refs/heads/master: 05dd2cd3bb3299540e33ff60c5b401dd88f273bd
11 changes: 9 additions & 2 deletions trunk/arch/sh/mm/fault_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,15 @@ static inline pmd_t *vmalloc_sync_one(pgd_t *pgd, unsigned long address)

if (!pmd_present(*pmd))
set_pmd(pmd, *pmd_k);
else
else {
/*
* The page tables are fully synchronised so there must
* be another reason for the fault. Return NULL here to
* signal that we have not taken care of the fault.
*/
BUG_ON(pmd_page(*pmd) != pmd_page(*pmd_k));
return NULL;
}

return pmd_k;
}
Expand All @@ -87,7 +94,7 @@ static noinline int vmalloc_fault(unsigned long address)
* an interrupt in the middle of a task switch..
*/
pgd_k = get_TTB();
pmd_k = vmalloc_sync_one(__va((unsigned long)pgd_k), address);
pmd_k = vmalloc_sync_one(pgd_k, address);
if (!pmd_k)
return -1;

Expand Down

0 comments on commit fc2ad17

Please sign in to comment.