svn commit: r194203 - head/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Sun Jun 14 17:53:56 UTC 2009


Author: dchagin
Date: Sun Jun 14 17:53:55 2009
New Revision: 194203
URL: http://svn.freebsd.org/changeset/base/194203

Log:
  Unlock process lock when return error from getrobustlist call.
  
  Tested by:	Alexander Best <alexbestms at math uni-muenster de>
  Approved by:	kib (mentor)
  MFC after:	3 days

Modified:
  head/sys/compat/linux/linux_futex.c

Modified: head/sys/compat/linux/linux_futex.c
==============================================================================
--- head/sys/compat/linux/linux_futex.c	Sun Jun 14 17:33:46 2009	(r194202)
+++ head/sys/compat/linux/linux_futex.c	Sun Jun 14 17:53:55 2009	(r194203)
@@ -707,8 +707,10 @@ linux_get_robust_list(struct thread *td,
 		/* XXX: ptrace? */
 		if (priv_check(td, PRIV_CRED_SETUID) || 
 		    priv_check(td, PRIV_CRED_SETEUID) ||
-		    p_candebug(td, p))
+		    p_candebug(td, p)) {
+			PROC_UNLOCK(p);
 			return (EPERM);
+		}
 		head = em->robust_futexes;
 		
 		PROC_UNLOCK(p);


More information about the svn-src-all mailing list