compat/freebsd32: set uio_rw for trailer's uio in freebsd32_sendfile()

PR:	297516
Reported by:	asomers
Fixes:	dfad790c8c ("sendfile: stop abusing kern_writev()")
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Konstantin Belousov committed 2026-08-14 17:35:39 +03:00
1 parent 1a71d24ecd
commit 4b17776d9a
1 file changed
+2
+2
View File
@@ -2251,6 +2251,8 @@ freebsd32_do_sendfile(struct thread *td,
hdtr32.trl_cnt, &trl_uio);
if (error)
goto out;
trl_uio->uio_rw = UIO_WRITE;
trl_uio->uio_td = td;
}
}