PERFORCE change 113281 for review

Todd Miller millert at FreeBSD.org
Sun Jan 21 22:33:33 UTC 2007


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

Change 113281 by millert at millert_macbook on 2007/01/21 22:33:13

	Add a missing vnode_put() if mac_mount_check_umount() denies access.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vfs/vfs_syscalls.c#20 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/vfs/vfs_syscalls.c#20 (text+ko) ====

@@ -842,8 +842,10 @@
 
 #ifdef MAC
 	error = mac_mount_check_umount(vfs_context_ucred(&context), mp);
-	if (error != 0)
+	if (error != 0) {
+		vnode_put(vp);
 		return (error);
+	}
 #endif
 	/*
 	 * Must be the root of the filesystem


More information about the p4-projects mailing list