Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2023 00:46:24 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e9162c32069e - stable/13 - vn_path_to_global_path_hardlink(): avoid freeing non-initialized pointer
Message-ID:  <202307110046.36B0kOdU082129@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307110046.36B0kOdU082129>