summaryrefslogtreecommitdiff
path: root/sys/kern/kern_physio.c
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-10-11 14:58:34 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-10-11 14:58:34 +0000
commit2b7f24d21041e3f89b69c6ba9cb4864d472246ad (patch)
tree60ccb9ea10edcf3d8fc8975fb348b756ea207e35 /sys/kern/kern_physio.c
parent890b32ee41df0d6e6a46be59babec6f1bba0606c (diff)
Notes
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r--sys/kern/kern_physio.c3
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) {