Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182994
b: refs/heads/master
c: f8a85f1
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jan 20, 2010
1 parent 1053491 commit ada1b6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 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: c26c20b823d48addbde9cb5709d80655c6fadf18
refs/heads/master: f8a85f1164a33e3eb5b421b137ced793ed53ee33
24 changes: 4 additions & 20 deletions trunk/arch/arm/mm/fault-armv.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,12 @@ static int adjust_pte(struct vm_area_struct *vma, unsigned long address)
int ret;

pgd = pgd_offset(vma->vm_mm, address);
if (pgd_none(*pgd))
goto no_pgd;
if (pgd_bad(*pgd))
goto bad_pgd;
if (pgd_none_or_clear_bad(pgd))
return 0;

pmd = pmd_offset(pgd, address);
if (pmd_none(*pmd))
goto no_pmd;
if (pmd_bad(*pmd))
goto bad_pmd;
if (pmd_none_or_clear_bad(pmd))
return 0;

pte = pte_offset_map(pmd, address);

Expand All @@ -91,18 +87,6 @@ static int adjust_pte(struct vm_area_struct *vma, unsigned long address)
pte_unmap(pte);

return ret;

bad_pgd:
pgd_ERROR(*pgd);
pgd_clear(pgd);
no_pgd:
return 0;

bad_pmd:
pmd_ERROR(*pmd);
pmd_clear(pmd);
no_pmd:
return 0;
}

static void
Expand Down

0 comments on commit ada1b6d

Please sign in to comment.