PERFORCE change 22929 for review

Chris Vance cvance at freebsd.org
Mon Dec 30 18:46:36 GMT 2002


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

Change 22929 by cvance at cvance_laptop on 2002/12/30 10:46:27

	Release Giant on error case

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/sebsd/ss/fileutils.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/sebsd/ss/fileutils.c#4 (text+ko) ====

@@ -76,8 +76,11 @@
 	mtx_lock(&Giant);	
 	NDINIT(&nd, LOOKUP, LOCKLEAF, pathseg, path, td);
 	error = vn_open(&nd, &fp->FILE_saved_open_flags, 0);
-	if (error)
+	if (error) {
+		mtx_unlock(&Giant);
 		return (NULL);
+	}
+
 	NDFREE(&nd, NDF_ONLY_PNBUF);
 	VOP_UNLOCK(nd.ni_vp, 0, td);
 	mtx_unlock(&Giant);	
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