svn commit: r283839 - head/sys/arm/arm

Andrew Turner andrew at FreeBSD.org
Sun May 31 21:03:07 UTC 2015


Author: andrew
Date: Sun May 31 21:03:06 2015
New Revision: 283839
URL: https://svnweb.freebsd.org/changeset/base/283839

Log:
  Set the return value correctly on copy failure in copystr.
  
  MFC after:	1 week

Modified:
  head/sys/arm/arm/copystr.S

Modified: head/sys/arm/arm/copystr.S
==============================================================================
--- head/sys/arm/arm/copystr.S	Sun May 31 20:45:35 2015	(r283838)
+++ head/sys/arm/arm/copystr.S	Sun May 31 21:03:06 2015	(r283839)
@@ -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


More information about the svn-src-all mailing list