Date: Sun, 21 Jan 2007 22:33:29 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113281 for review Message-ID: <200701212233.l0LMXTm7062422@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113281 Change 113281 by millert@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701212233.l0LMXTm7062422>