patch-2.1.113 linux/arch/i386/mm/fault.c

Next file: linux/arch/m68k/amiga/Makefile
Previous file: linux/arch/i386/kernel/traps.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.112/linux/arch/i386/mm/fault.c linux/arch/i386/mm/fault.c
@@ -100,10 +100,10 @@
 	/* get the address */
 	__asm__("movl %%cr2,%0":"=r" (address));
 
-	if (local_irq_count[smp_processor_id()])
-		die("page fault from irq handler",regs,error_code);
 	tsk = current;
 	mm = tsk->mm;
+	if (in_interrupt())
+		die("page fault from irq handler",regs,error_code);
 
 	down(&mm->mmap_sem);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov