patch-2.1.2 linux/arch/alpha/mm/fault.c

Next file: linux/arch/alpha/mm/init.c
Previous file: linux/arch/alpha/lib/memcpy.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.1/linux/arch/alpha/mm/fault.c linux/arch/alpha/mm/fault.c
@@ -97,6 +97,11 @@
  */
 bad_area:
 	up(&mm->mmap_sem);
+	/* Did we have an exception handler installed? */
+	if (current->tss.ex.count == 1) {
+		current->tss.ex.count = 0;
+		__handle_exception(&current->tss.ex);
+	}
 	if (user_mode(&regs)) {
 		printk("%s: memory violation at pc=%08lx rp=%08lx (bad address = %08lx)\n",
 			tsk->comm, regs.pc, regs.r26, address);

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