From: Jesper Nilsson Date: Wed, 4 Aug 2010 15:23:24 +0000 (+0200) Subject: CRIS: Don't take faults while in_atomic X-Git-Tag: v2.6.36-rc1~484^2~3 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=028c1f6817c1ef49c61641dc1ae6c629e5bb32df;p=net-next-2.6.git CRIS: Don't take faults while in_atomic Signed-off-by: Jesper Nilsson --- diff --git a/arch/cris/mm/fault.c b/arch/cris/mm/fault.c index 72dbdbf0acc..a2b4c0b8f0f 100644 --- a/arch/cris/mm/fault.c +++ b/arch/cris/mm/fault.c @@ -1,10 +1,7 @@ /* - * linux/arch/cris/mm/fault.c - * - * Copyright (C) 2000-2006 Axis Communications AB - * - * Authors: Bjorn Wesen + * arch/cris/mm/fault.c * + * Copyright (C) 2000-2010 Axis Communications AB */ #include @@ -108,11 +105,11 @@ do_page_fault(unsigned long address, struct pt_regs *regs, info.si_code = SEGV_MAPERR; /* - * If we're in an interrupt or have no user - * context, we must not take the fault.. + * If we're in an interrupt or "atomic" operation or have no + * user context, we must not take the fault. */ - if (in_interrupt() || !mm) + if (in_atomic() || !mm) goto no_context; down_read(&mm->mmap_sem);