svn commit: r263960 - stable/10/sys/security/audit
Mateusz Guzik
mjg at FreeBSD.org
Mon Mar 31 02:24:29 UTC 2014
Author: mjg
Date: Mon Mar 31 02:24:29 2014
New Revision: 263960
URL: http://svnweb.freebsd.org/changeset/base/263960
Log:
MFC r263458:
audit: plug FILEDESC_LOCK leak in audit_canon_path.
Modified:
stable/10/sys/security/audit/audit_bsm_klib.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/security/audit/audit_bsm_klib.c
==============================================================================
--- stable/10/sys/security/audit/audit_bsm_klib.c Mon Mar 31 02:19:57 2014 (r263959)
+++ stable/10/sys/security/audit/audit_bsm_klib.c Mon Mar 31 02:24:29 2014 (r263960)
@@ -497,6 +497,7 @@ audit_canon_path(struct thread *td, int
/* XXX: fgetvp() that vhold()s vnode instead of vref()ing it would be better */
error = fgetvp(td, dirfd, NULL, &cvnp);
if (error) {
+ FILEDESC_SUNLOCK(fdp);
cpath[0] = '\0';
if (rvnp != NULL)
vdrop(rvnp);
More information about the svn-src-stable-10
mailing list