zfs: fix null ap->a_fsizetd NULL pointer derefernce

Submitted by:		rmacklem
Reported by:		cy
Tested by:		cy, mm
Reviewed by:		pjd, mm
Differential revision:	https://reviews.freebsd.org/D39418
This commit is contained in:
Martin Matuska 2023-04-05 09:30:15 +02:00
parent acd0088c44
commit eb1feadc20

View File

@ -6290,7 +6290,7 @@ zfs_freebsd_copy_file_range(struct vop_copy_file_range_args *ap)
goto unlock;
error = zfs_clone_range(VTOZ(invp), ap->a_inoffp, VTOZ(outvp),
ap->a_outoffp, &len, ap->a_fsizetd->td_ucred);
ap->a_outoffp, &len, ap->a_outcred);
*ap->a_lenp = (size_t)len;
unlock: