Fixed incorrect bufsize assignment that was causing a panic.
Submitted by: John Dyson
This commit is contained in:
parent
31998a1a56
commit
d86d477fe6
@ -291,7 +291,7 @@ vnstrategy(struct buf *bp)
|
||||
nbp = getvnbuf();
|
||||
nbp->b_flags = flags;
|
||||
nbp->b_bcount = sz;
|
||||
nbp->b_bufsize = bp->b_bufsize;
|
||||
nbp->b_bufsize = sz;
|
||||
nbp->b_error = 0;
|
||||
if (vp->v_type == VBLK || vp->v_type == VCHR)
|
||||
nbp->b_dev = vp->v_rdev;
|
||||
|
Loading…
Reference in New Issue
Block a user