zfs: fix build without MAC

This commit is contained in:
Gleb Smirnoff 2024-08-14 09:06:31 -07:00
parent ca83345ab4
commit b458ddf27f

View file

@ -6125,7 +6125,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);