From e9162c32069e5276f5ec161dddaf6e45a27f5d67 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 3 Jul 2023 20:22:33 +0300 Subject: 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) { -- cgit v1.2.3