Fix typo in breaking up requests to size limit.

Found by: Peter Edwards <pmedwards@eircom.net>
This commit is contained in:
sos 2003-11-09 10:11:15 +00:00
parent 32946a73bf
commit 1528f8f6b7

View File

@ -1018,7 +1018,7 @@ acd_geom_start(struct bio *bp)
u_int pos, size = cdp->iomax - cdp->iomax % bp->bio_to->sectorsize;
struct bio *bp2;
for (pos = 0; pos < bp->bio_length; pos += bp->bio_length) {
for (pos = 0; pos < bp->bio_length; pos += size) {
if (!(bp2 = g_clone_bio(bp))) {
bp->bio_error = ENOMEM;
break;