git: e9162c32069e - stable/13 - vn_path_to_global_path_hardlink(): avoid freeing non-initialized pointer
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jul 2023 00:46:24 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=e9162c32069e5276f5ec161dddaf6e45a27f5d67
commit e9162c32069e5276f5ec161dddaf6e45a27f5d67
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-07-03 17:22:33 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-07-11 00:46:02 +0000
vn_path_to_global_path_hardlink(): avoid freeing non-initialized pointer
(cherry picked from commit d6b900c915c19ac1bb5d57659695fd143864be66)
---
sys/kern/vfs_cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index b9e07a2b8dcb..b20bce7572be 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -3851,7 +3851,7 @@ vn_path_to_global_path_hardlink(struct thread *td, struct vnode *vp,
if (error != 0) {
vrele(vp);
- goto out;
+ return (error);
}
if (strlen(rpath) >= pathlen) {