mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix typo in breaking up requests to size limit.
Found by: Peter Edwards <pmedwards@eircom.net>
This commit is contained in:
parent
8c3bfd6934
commit
35e67f571f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue