Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2021 12:46:37 GMT
From:      Ka Ho Ng <khng@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9d2067ec4027 - stable/12 - tmpfs: Fix error being cleared after commit c12118f6cec0
Message-ID:  <202108271246.17RCkbvG060046@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by khng:

URL: https://cgit.FreeBSD.org/src/commit/?id=9d2067ec4027e23e2eed5131f4aaa9ff34b40534

commit 9d2067ec4027e23e2eed5131f4aaa9ff34b40534
Author:     Ka Ho Ng <khng@FreeBSD.org>
AuthorDate: 2021-08-24 16:35:29 +0000
Commit:     Ka Ho Ng <khng@FreeBSD.org>
CommitDate: 2021-08-27 12:05:32 +0000

    tmpfs: Fix error being cleared after commit c12118f6cec0
    
    In tmpfs_link() error was erroneously cleared in commit c12118f6cec0.
    
    Sponsored by:   The FreeBSD Foundation
    MFC with:       c12118f6cec0
    
    (cherry picked from commit a48416f844e3007b4e9f6df125e25cf3a1daad62)
---
 sys/fs/tmpfs/tmpfs_vnops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index 8b9afd1f887a..615414acd335 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -653,7 +653,7 @@ tmpfs_link(struct vop_link_args *v)
 	error = 0;
 
 out:
-	return (0);
+	return (error);
 }
 
 /*



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