Skip to content

Commit 028c1f6

Browse files
committed
CRIS: Don't take faults while in_atomic
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
1 parent a90993c commit 028c1f6

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

‎arch/cris/mm/fault.c‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/*
2-
* linux/arch/cris/mm/fault.c
3-
*
4-
* Copyright (C) 2000-2006 Axis Communications AB
5-
*
6-
* Authors: Bjorn Wesen
2+
* arch/cris/mm/fault.c
73
*
4+
* Copyright (C) 2000-2010 Axis Communications AB
85
*/
96

107
#include <linux/mm.h>
@@ -108,11 +105,11 @@ do_page_fault(unsigned long address, struct pt_regs *regs,
108105
info.si_code = SEGV_MAPERR;
109106

110107
/*
111-
* If we're in an interrupt or have no user
112-
* context, we must not take the fault..
108+
* If we're in an interrupt or "atomic" operation or have no
109+
* user context, we must not take the fault.
113110
*/
114111

115-
if (in_interrupt() || !mm)
112+
if (in_atomic() || !mm)
116113
goto no_context;
117114

118115
down_read(&mm->mmap_sem);

0 commit comments

Comments
 (0)