svn commit: r357913 - stable/12/sys/compat/linux
Konstantin Belousov
kib at FreeBSD.org
Fri Feb 14 13:10:53 UTC 2020
Author: kib
Date: Fri Feb 14 13:10:52 2020
New Revision: 357913
URL: https://svnweb.freebsd.org/changeset/base/357913
Log:
MFC r357668:
linux futex_put(): do not touch futex after dropping our reference.
Modified:
stable/12/sys/compat/linux/linux_futex.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/compat/linux/linux_futex.c
==============================================================================
--- stable/12/sys/compat/linux/linux_futex.c Fri Feb 14 13:09:41 2020 (r357912)
+++ stable/12/sys/compat/linux/linux_futex.c Fri Feb 14 13:10:52 2020 (r357913)
@@ -332,9 +332,9 @@ futex_put(struct futex *f, struct waiting_proc *wp)
f->f_key.shared);
LINUX_CTR3(sys_futex, "futex_put uaddr %p ref %d shared %d",
f->f_uaddr, f->f_refcount, f->f_key.shared);
- FUTEXES_UNLOCK;
if (FUTEX_LOCKED(f))
futex_unlock(f);
+ FUTEXES_UNLOCK;
LIN_SDT_PROBE0(futex, futex_put, return);
}
More information about the svn-src-stable-12
mailing list