PERFORCE change 38800 for review

Robert Watson rwatson at FreeBSD.org
Mon Sep 29 20:56:33 GMT 2003


http://perforce.freebsd.org/chv.cgi?CH=38800

Change 38800 by rwatson at 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) {
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list