diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2025-03-20 17:56:47 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2025-03-21 23:39:51 +0000 |
| commit | 7fad17a3e63481ef71b731b0059cb918aec14f17 (patch) | |
| tree | 5dc209a95b5c19870227937108eefff1026b4c68 | |
| parent | 283be95ea29abd7f867e4084bafe368c47f6c038 (diff) | |
kern___acl_aclcheck_path: vrele the vnode after namei()
Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
| -rw-r--r-- | sys/kern/vfs_acl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c index fde05478d41c..3106218abce6 100644 --- a/sys/kern/vfs_acl.c +++ b/sys/kern/vfs_acl.c @@ -551,6 +551,7 @@ kern___acl_aclcheck_path(struct thread *td, const char *path, acl_type_t type, error = namei(&nd); if (error == 0) { error = vacl_aclcheck(td, nd.ni_vp, type, aclp); + vrele(nd.ni_vp); NDFREE_PNBUF(&nd); } return (error); |
