From fc3d4f30c219073c07b92966ca93f718b61fd6ec Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 19 Nov 1995 13:27:52 +0000 Subject: [PATCH] if you read with a smaller buffer than the block on the tape, b_resid and b_count would be incorrect; from jtk@kolvir.arlington.ma.us; netbsd pr#1597 --- sys/scsi/st.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/scsi/st.c b/sys/scsi/st.c index 3bc47126faa..b83092de870 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -854,7 +854,8 @@ done: /* * Correctly set the buf to indicate a completed xfer */ - iodone(bp); + bp->b_resid = bp->b_bcount; + biodone(bp); return; } @@ -1611,7 +1612,7 @@ st_interpret_sense(xs) struct buf *bp = xs->bp; struct st_softc *st = sc_link->device_softc; u_int8_t key; - u_int32_t info; + int32_t info; /* * Get the sense fields and work out what code -- 2.20.1