]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/block/aoe/aoecmd.c
Merge branch 'for-3.10/core' of git://git.kernel.dk/linux-block
[karo-tx-linux.git] / drivers / block / aoe / aoecmd.c
index 92b6d7c51e39590b3780f17c88737009b7becbbf..5efed089a702d501f3b0de2e85997362555d0a09 100644 (file)
@@ -928,7 +928,7 @@ bufinit(struct buf *buf, struct request *rq, struct bio *bio)
        buf->resid = bio->bi_size;
        buf->sector = bio->bi_sector;
        bio_pageinc(bio);
-       buf->bv = bv = &bio->bi_io_vec[bio->bi_idx];
+       buf->bv = bv = bio_iovec(bio);
        buf->bv_resid = bv->bv_len;
        WARN_ON(buf->bv_resid == 0);
 }