[Bug 297516] sendfile: Assertion uio->uio_rw == UIO_WRITE in 32-bit compat mode
| Newsgroups | gmane.os.freebsd.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297516 --- Comment #2 from Konstantin Belousov <[email protected]> --- Try the following please diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index e899c55ee5b1..08e15140317d 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -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; } } -- You are receiving this mail because: You are the assignee for the bug.