Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 2003 13:56:33 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 38800 for review
Message-ID:  <200309292056.h8TKuX49004032@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=38800

Change 38800 by rwatson@rwatson_tislabs on 2003/09/29 13:56:24

	Integrate pipe locking fix from trustedbsd_mac: make sure to
	unlock the pipe lock on a MAC failure.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sys/kern/sys_pipe.c#5 integrate

Differences ...

==== //depot/projects/trustedbsd/sebsd/sys/kern/sys_pipe.c#5 (text+ko) ====

@@ -1233,8 +1233,10 @@
 
 #ifdef MAC
 	error = mac_check_pipe_ioctl(active_cred, mpipe, cmd, data);
-	if (error)
+	if (error) {
+		PIPE_UNLOCK(mpipe);
 		return (error);
+	}
 #endif
 
 	switch (cmd) {



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