From 76768e8a2652719c17392e5386e1caa1361c44cd Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sun, 31 May 2015 21:03:06 +0000 Subject: [PATCH] Set the return value correctly on copy failure in copystr. MFC after: 1 week --- sys/arm/arm/copystr.S | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/arm/arm/copystr.S b/sys/arm/arm/copystr.S index 3ce8499d3d3f..d41525ab414a 100644 --- a/sys/arm/arm/copystr.S +++ b/sys/arm/arm/copystr.S @@ -194,6 +194,7 @@ END(copyoutstr) /* A fault occurred during the copy */ .Lcopystrfault: + mov r0, #EFAULT mov r1, #0x00000000 str r1, [r4, #PCB_ONFAULT] RESTORE_REGS