Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2017 10:50:15 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r319195 - stable/11/lib/libc/aarch64/sys
Message-ID:  <201705301050.v4UAoFJP047043@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705301050.v4UAoFJP047043>