projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arch: mm: pass userspace fault flag to generic fault handler
[firefly-linux-kernel-4.4.55.git]
/
arch
/
xtensa
/
mm
/
fault.c
diff --git
a/arch/xtensa/mm/fault.c
b/arch/xtensa/mm/fault.c
index 4b7bc8db170ff8ac6befadb8246ac15938b74cae..70fa7bc42b4a0853012af6f6daaeb254f9c5a086 100644
(file)
--- 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);