Patchwork [hurd,commited] hurd: Fix build

login
register
mail settings
Submitter Samuel Thibault
Date Aug. 30, 2019, 4:30 p.m.
Message ID <20190830163001.14480-1-samuel.thibault@ens-lyon.org>
Download mbox | patch
Permalink /patch/34360/
State New
Headers show

Comments

Samuel Thibault - Aug. 30, 2019, 4:30 p.m.
* sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): Spin-lock '&ss->lock',
not 'ss'.
---
 sysdeps/mach/hurd/i386/sigreturn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/sysdeps/mach/hurd/i386/sigreturn.c b/sysdeps/mach/hurd/i386/sigreturn.c
index c9eaf96f7d..111ca33b54 100644
--- a/sysdeps/mach/hurd/i386/sigreturn.c
+++ b/sysdeps/mach/hurd/i386/sigreturn.c
@@ -30,7 +30,7 @@  static void
 __sigreturn2 (int *usp)
 {
   struct hurd_sigstate *ss = _hurd_self_sigstate ();
-  __spin_unlock (ss);
+  __spin_unlock (&ss->lock);
 
   sp = usp;
 #define A(line) asm volatile (#line)