Initialize b_iooffset before calling strategy
This commit is contained in:
parent
7fb46a796f
commit
32b3105ecb
@ -734,6 +734,7 @@ spec_getpages(ap)
|
||||
KASSERT(bp->b_wcred == NOCRED, ("leaking write ucred"));
|
||||
bp->b_rcred = crhold(curthread->td_ucred);
|
||||
bp->b_wcred = crhold(curthread->td_ucred);
|
||||
bp->b_iooffset = offset;
|
||||
bp->b_blkno = blkno;
|
||||
bp->b_lblkno = blkno;
|
||||
pbgetvp(ap->a_vp, bp);
|
||||
|
@ -69,6 +69,7 @@ physio(dev_t dev, struct uio *uio, int ioflag)
|
||||
bp->b_data = uio->uio_iov[i].iov_base;
|
||||
bp->b_bcount = uio->uio_iov[i].iov_len;
|
||||
bp->b_offset = uio->uio_offset;
|
||||
bp->b_iooffset = uio->uio_offset;
|
||||
bp->b_saveaddr = sa;
|
||||
|
||||
/* Don't exceed drivers iosize limit */
|
||||
|
Loading…
Reference in New Issue
Block a user