diff options
author | Prakash Jalan <Prakash.Jalan@Sun.COM> | 2008-09-15 11:49:05 -0700 |
---|---|---|
committer | Prakash Jalan <Prakash.Jalan@Sun.COM> | 2008-09-15 11:49:05 -0700 |
commit | a490cd42d8831006fd6770ac6d2347209864afad (patch) | |
tree | 0fe2f7f71efee56c40e89e65827a0915fa89e23d /usr/src/uts/common/syscall/sendfile.c | |
parent | ff3451beff03c41b547c5839a200ddb5903bfed4 (diff) | |
download | illumos-gate-a490cd42d8831006fd6770ac6d2347209864afad.tar.gz |
6462857 panic in sendvec64()
Diffstat (limited to 'usr/src/uts/common/syscall/sendfile.c')
-rw-r--r-- | usr/src/uts/common/syscall/sendfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/common/syscall/sendfile.c b/usr/src/uts/common/syscall/sendfile.c index 5883ba7700..18f7ccb9ed 100644 --- a/usr/src/uts/common/syscall/sendfile.c +++ b/usr/src/uts/common/syscall/sendfile.c @@ -370,6 +370,8 @@ sendvec_chunk64(file_t *fp, u_offset_t *fileoff, struct ksendfilevec64 *sfv, aiov.iov_base = ptr; aiov.iov_len = cnt; auio.uio_loffset = *fileoff; + auio.uio_iov = &aiov; + auio.uio_iovcnt = 1; auio.uio_resid = cnt; auio.uio_segflg = UIO_SYSSPACE; auio.uio_llimit = curproc->p_fsz_ctl; @@ -1080,6 +1082,8 @@ sendvec_chunk(file_t *fp, u_offset_t *fileoff, struct sendfilevec *sfv, aiov.iov_len = cnt; auio.uio_loffset = *fileoff; auio.uio_resid = cnt; + auio.uio_iov = &aiov; + auio.uio_iovcnt = 1; auio.uio_segflg = UIO_SYSSPACE; auio.uio_llimit = curproc->p_fsz_ctl; auio.uio_fmode = fflag; |