svn commit: r319195 - stable/11/lib/libc/aarch64/sys

Andrew Turner andrew at FreeBSD.org
Tue May 30 10:50:16 UTC 2017


Author: andrew
Date: Tue May 30 10:50:15 2017
New Revision: 319195
URL: https://svnweb.freebsd.org/changeset/base/319195

Log:
  MFC r312703:
  
  Fix the error value we write in cerror. __error returns an int *, however
  we were writing a 64 bit value meaning the 32 bits after this would be
  trashed.

Modified:
  stable/11/lib/libc/aarch64/sys/cerror.S
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libc/aarch64/sys/cerror.S
==============================================================================
--- stable/11/lib/libc/aarch64/sys/cerror.S	Tue May 30 07:31:02 2017	(r319194)
+++ stable/11/lib/libc/aarch64/sys/cerror.S	Tue May 30 10:50:15 2017	(r319195)
@@ -34,7 +34,7 @@ ENTRY(cerror)
 	stp	x0, lr, [sp]
 	bl	_C_LABEL(__error)
 	ldp	x1, lr, [sp]
-	str	x1, [x0]
+	str	w1, [x0]
 	movn	x0, #0
 	movn	x1, #0
 	add	sp, sp, #16


More information about the svn-src-stable mailing list