Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2002 08:38:45 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 14842 for review
Message-ID:  <200207241538.g6OFcj1k040030@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14842

Change 14842 by rwatson@rwatson_paprika on 2002/07/24 08:38:04

	If you lock a vnode, please be sure to unlock it.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#27 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/vfs_vnops.c#27 (text+ko) ====

@@ -790,6 +790,7 @@
 #ifdef MAC
 	vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
 	error = mac_cred_check_vnode_op(cred, vp, MAC_OP_VNODE_POLL);
+	VOP_UNLOCK(vp, 0, td);
 	if (error)
 		return (error);
 #endif

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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