aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2024-01-03 15:40:15 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2024-01-03 15:40:15 +0000
commit71cfc19e024bd68caf6bd2a4ec2e2e4fececf12d (patch)
treef03f8d83e70eda8d466f4ab769711a9449d7ae2f
parent789a2b4e5c7d88c424346fd326c475c31993d801 (diff)
downloadsrc-71cfc19e024bd68caf6bd2a4ec2e2e4fececf12d.tar.gz
src-71cfc19e024bd68caf6bd2a4ec2e2e4fececf12d.zip
vfs_vnops.c: Fix cherry-pick of e7044084cf81
Oops, my bad. When I did the cherry-pick of e7044084cf81 I missed changing outsize to va.va_size. This direct commit fixes it. PR: 276045
-rw-r--r--sys/kern/vfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index f5961a33f960..be3739f41086 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -3358,7 +3358,7 @@ vn_generic_copy_file_range(struct vnode *invp, off_t *inoffp,
*outoffp <= OFF_MAX - len && va.va_size <= *outoffp + len &&
*inoffp < inva.va_size &&
*outoffp <= OFF_MAX - (inva.va_size - *inoffp) &&
- outsize <= *outoffp + (inva.va_size - *inoffp)) {
+ va.va_size <= *outoffp + (inva.va_size - *inoffp)) {
#ifdef MAC
error = mac_vnode_check_write(curthread->td_ucred,
outcred, outvp);