Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36262
b: refs/heads/master
c: f647d33
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Sep 27, 2006
1 parent d6ff816 commit a78f0ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: c470662854ff94d44bf8c192cefac3efa33db676
refs/heads/master: f647d33f879d258de4ab2559975bd6eebda2033e
7 changes: 4 additions & 3 deletions trunk/arch/sh/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,11 @@ asmlinkage int __do_page_fault(struct pt_regs *regs, unsigned long writeaccess,
* are always mapped, whether it be due to legacy behaviour in
* 29-bit mode, or due to PMB configuration in 32-bit mode.
*/
if (address >= P3SEG && address < P3_ADDR_MAX)
if (address >= P3SEG && address < P3_ADDR_MAX) {
pgd = pgd_offset_k(address);
else {
if (unlikely(address >= TASK_SIZE || !current->mm))
mm = NULL;
} else {
if (unlikely(address >= TASK_SIZE || !(mm = current->mm)))
return 1;

pgd = pgd_offset(current->mm, address);
Expand Down

0 comments on commit a78f0ed

Please sign in to comment.