Fix typo in breaking up requests to size limit.
Found by: Peter Edwards <pmedwards@eircom.net>
This commit is contained in:
parent
32946a73bf
commit
1528f8f6b7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user