FreeBSD: fix build without kernel option MAC

Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Mark Johnston <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Gleb Smirnoff <[email protected]>
Closes #16446
This commit is contained in:
Gleb Smirnoff authored and GitHub committed 2024-08-15 09:08:43 -07:00
1 parent d2ccc21552
commit 83f359245a
1 file changed
+2
+2
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);