diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-09-10 14:43:12 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-09-10 14:43:12 +1000 |
commit | 41aa594a367ee1a8bc00d4ae9b50eee7e5cf6d4c (patch) | |
tree | 73dce1050d24b83279a972414e84adf03a0109a5 /arch/xtensa/mm/fault.c | |
parent | 02479717326aac5316d0081f578715d924045fc2 (diff) | |
parent | c1be48e758a61b1b63c621646691ead532625a40 (diff) |
Merge branch 'akpm/master'
Diffstat (limited to 'arch/xtensa/mm/fault.c')
-rw-r--r-- | arch/xtensa/mm/fault.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/mm/fault.c b/arch/xtensa/mm/fault.c index 4b7bc8db170f..70fa7bc42b4a 100644 --- a/arch/xtensa/mm/fault.c +++ b/arch/xtensa/mm/fault.c @@ -72,6 +72,8 @@ void do_page_fault(struct pt_regs *regs) address, exccause, regs->pc, is_write? "w":"", is_exec? "x":""); #endif + if (user_mode(regs)) + flags |= FAULT_FLAG_USER; retry: down_read(&mm->mmap_sem); vma = find_vma(mm, address); |