]> err.no Git - linux-2.6/blobdiff - drivers/block/aoe/aoecmd.c
aoe: use bio->bi_idx
[linux-2.6] / drivers / block / aoe / aoecmd.c
index f2b8f558e1bb4e6ba0dbbadfa41cd27b7129f3cd..2d0bcdd96698d3c60bda0122754abdba650df637 100644 (file)
@@ -166,6 +166,7 @@ aoecmd_ata_rw(struct aoedev *d, struct frame *f)
                d->inprocess = NULL;
        } else if (buf->bv_resid == 0) {
                buf->bv++;
+               WARN_ON(buf->bv->bv_len == 0);
                buf->bv_resid = buf->bv->bv_len;
                buf->bufaddr = page_address(buf->bv->bv_page) + buf->bv->bv_offset;
        }