git: 4fe752ccb3f8 - stable/14 - zfs: fix build without MAC

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 12 Sep 2024 07:02:08 UTC
The branch stable/14 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=4fe752ccb3f8faeecf747932d13b15fc774cc244

commit 4fe752ccb3f8faeecf747932d13b15fc774cc244
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-08-14 16:06:31 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-09-12 07:01:40 +0000

    zfs: fix build without MAC
    
    (cherry picked from commit b458ddf27fd87afa57575cdad68f6b4183916666)
---
 sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
index 715b0ee6419c..96ea560a1a85 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
@@ -6323,7 +6323,9 @@ zfs_freebsd_copy_file_range(struct vop_copy_file_range_args *ap)
 	    error == EOPNOTSUPP)
 		goto bad_locked_fallback;
 	*ap->a_lenp = (size_t)len;
+#ifdef MAC
 out_locked:
+#endif
 	if (invp != outvp)
 		VOP_UNLOCK(invp);
 	VOP_UNLOCK(outvp);