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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to