diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-10-11 14:58:34 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-10-11 14:58:34 +0000 |
| commit | 2b7f24d21041e3f89b69c6ba9cb4864d472246ad (patch) | |
| tree | 60ccb9ea10edcf3d8fc8975fb348b756ea207e35 /sys/kern/kern_physio.c | |
| parent | 890b32ee41df0d6e6a46be59babec6f1bba0606c (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_physio.c')
| -rw-r--r-- | sys/kern/kern_physio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index d31218817c3e..3525ca0547fb 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -116,7 +116,8 @@ physio(dev_t dev, struct uio *uio, int ioflag) if (iolen == 0 && !(bp->b_ioflags & BIO_ERROR)) goto doerror; /* EOF */ uio->uio_iov[i].iov_len -= iolen; - uio->uio_iov[i].iov_base += iolen; + uio->uio_iov[i].iov_base = + (char *)uio->uio_iov[i].iov_base + iolen; uio->uio_resid -= iolen; uio->uio_offset += iolen; if( bp->b_ioflags & BIO_ERROR) { |
