git: b73d66d00394 - stable/13 - vn_path_to_global_path_hardlink(): initialize len
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jul 2023 00:46:25 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=b73d66d00394cd19392cc40140404889c940b0da
commit b73d66d00394cd19392cc40140404889c940b0da
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-07-04 07:46:15 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-07-11 00:46:02 +0000
vn_path_to_global_path_hardlink(): initialize len
(cherry picked from commit d7614c010c762dcb29110073e7fbecf048fa3a32)
---
sys/kern/vfs_cache.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index b20bce7572be..36ac9c2ed6ab 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -3846,6 +3846,7 @@ vn_path_to_global_path_hardlink(struct thread *td, struct vnode *vp,
* name.
*/
VOP_UNLOCK(vp);
+ len = pathlen;
error = vn_fullpath_hardlink(vp, dvp, leaf_name, leaf_length,
&rpath, &fbuf, &len);