FreeBSD: fix build without kernel option MAC

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Mark Johnston <markj@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Gleb Smirnoff <glebius@FreeBSD.org>
Closes #16446
This commit is contained in:
Gleb Smirnoff 2024-08-15 09:08:43 -07:00 committed by GitHub
parent d2ccc21552
commit 83f359245a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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