From a48416f844e3007b4e9f6df125e25cf3a1daad62 Mon Sep 17 00:00:00 2001 From: Ka Ho Ng Date: Wed, 25 Aug 2021 00:35:29 +0800 Subject: [PATCH] tmpfs: Fix error being cleared after commit c12118f6cec0 In tmpfs_link() error was erroneously cleared in commit c12118f6cec0. Sponsored by: The FreeBSD Foundation MFC after: 3 days MFC with: c12118f6cec0 --- 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 325b8d2789b..326a5132990 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -808,7 +808,7 @@ tmpfs_link(struct vop_link_args *v) error = 0; out: - return (0); + return (error); } /*