diff options
Diffstat (limited to 'arch/tile/mm/fault.c')
-rw-r--r-- | arch/tile/mm/fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/mm/fault.c b/arch/tile/mm/fault.c index e83cc999da02..3f4f58d34a92 100644 --- a/arch/tile/mm/fault.c +++ b/arch/tile/mm/fault.c | |||
@@ -354,9 +354,9 @@ static int handle_page_fault(struct pt_regs *regs, | |||
354 | 354 | ||
355 | /* | 355 | /* |
356 | * If we're in an interrupt, have no user context or are running in an | 356 | * If we're in an interrupt, have no user context or are running in an |
357 | * atomic region then we must not take the fault. | 357 | * region with pagefaults disabled then we must not take the fault. |
358 | */ | 358 | */ |
359 | if (in_atomic() || !mm) { | 359 | if (pagefault_disabled() || !mm) { |
360 | vma = NULL; /* happy compiler */ | 360 | vma = NULL; /* happy compiler */ |
361 | goto bad_area_nosemaphore; | 361 | goto bad_area_nosemaphore; |
362 | } | 362 | } |