mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
audit: plug FILEDESC_LOCK leak in audit_canon_path.
MFC after: 3 days
This commit is contained in:
parent
8b3f42d52d
commit
00b85f6218
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263458
@ -497,6 +497,7 @@ audit_canon_path(struct thread *td, int dirfd, char *path, char *cpath)
|
||||
/* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user