zfs: fix build without MAC

(cherry picked from commit b458ddf27f)
This commit is contained in:
Gleb Smirnoff 2024-08-14 09:06:31 -07:00 committed by Colin Percival
parent e8b9bd97e3
commit 4fe752ccb3

View file

@ -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);