git: eb1feadc201a - main - zfs: fix null ap->a_fsizetd NULL pointer derefernce
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Apr 2023 07:33:47 UTC
The branch main has been updated by mm: URL: https://cgit.FreeBSD.org/src/commit/?id=eb1feadc201ab7c4dc3aee9938e272c068179a5f commit eb1feadc201ab7c4dc3aee9938e272c068179a5f Author: Martin Matuska <mm@FreeBSD.org> AuthorDate: 2023-04-05 07:30:15 +0000 Commit: Martin Matuska <mm@FreeBSD.org> CommitDate: 2023-04-05 07:33:32 +0000 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 --- sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c index 97429b360a36..baa2ee5b3824 100644 --- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c +++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c @@ -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: