diff options
Diffstat (limited to 'arch/um/kernel/trap.c')
-rw-r--r-- | arch/um/kernel/trap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c index 8e4daf44e980..47ff9b7f3e5d 100644 --- a/arch/um/kernel/trap.c +++ b/arch/um/kernel/trap.c | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <linux/sched.h> | 7 | #include <linux/sched.h> |
8 | #include <linux/hardirq.h> | 8 | #include <linux/hardirq.h> |
9 | #include <linux/module.h> | 9 | #include <linux/module.h> |
10 | #include <linux/uaccess.h> | ||
10 | #include <asm/current.h> | 11 | #include <asm/current.h> |
11 | #include <asm/pgtable.h> | 12 | #include <asm/pgtable.h> |
12 | #include <asm/tlbflush.h> | 13 | #include <asm/tlbflush.h> |
@@ -35,10 +36,10 @@ int handle_page_fault(unsigned long address, unsigned long ip, | |||
35 | *code_out = SEGV_MAPERR; | 36 | *code_out = SEGV_MAPERR; |
36 | 37 | ||
37 | /* | 38 | /* |
38 | * If the fault was during atomic operation, don't take the fault, just | 39 | * If the fault was with pagefaults disabled, don't take the fault, just |
39 | * fail. | 40 | * fail. |
40 | */ | 41 | */ |
41 | if (in_atomic()) | 42 | if (faulthandler_disabled()) |
42 | goto out_nosemaphore; | 43 | goto out_nosemaphore; |
43 | 44 | ||
44 | if (is_user) | 45 | if (is_user) |