patch-2.4.3 linux/arch/ppc/kernel/traps.c

Next file: linux/arch/ppc/mm/fault.c
Previous file: linux/arch/ppc/kernel/time.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/arch/ppc/kernel/traps.c linux/arch/ppc/kernel/traps.c
@@ -237,7 +237,7 @@
 		return retval;
 
 	if (get_user(instword, (uint *)(regs->nip)))
-		return EFAULT;
+		return -EFAULT;
 
 	/* Emulate the mfspr rD, PVR.
 	 */
@@ -281,7 +281,7 @@
 		/* Try to emulate it if we should. */
 		int errcode;
 		if ((errcode = emulate_instruction(regs))) {
-			if (errcode == EFAULT)
+			if (errcode == -EFAULT)
 				_exception(SIGBUS, regs);
 			else
 				_exception(SIGILL, regs);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)