aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-03-25 15:46:14 -0400
committerJens Axboe <axboe@kernel.dk>2013-03-25 15:46:14 -0400
commitf1fb3449efd5c49b48e35746bc7283eb9c73e3a0 (patch)
tree689bebca12b3ca077b72c50f6ef470d125c699e6 /drivers/block/aoe
parent705cd0ea1cde2ce9225f1485c5a32c5841cacc5f (diff)
aoe: Fix unitialized var usage
Commit 4f2ac93c175c4922bdddbfec6cad94b32cea0070 (block: Remove bi_idx references) accidently removed the bit that set bv - readd that. Signed-off-by: Kent Overstreet <koverstreet@google.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: "Ed L. Cashin" <ecashin@coraid.com> Cc: fengguang.wu@intel.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/aoe')
-rw-r--r--drivers/block/aoe/aoecmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c
index 8188ad131b97..af96ca171238 100644
--- a/drivers/block/aoe/aoecmd.c
+++ b/drivers/block/aoe/aoecmd.c
@@ -927,7 +927,7 @@ bufinit(struct buf *buf, struct request *rq, struct bio *bio)
927 buf->resid = bio->bi_size; 927 buf->resid = bio->bi_size;
928 buf->sector = bio->bi_sector; 928 buf->sector = bio->bi_sector;
929 bio_pageinc(bio); 929 bio_pageinc(bio);
930 buf->bv = bio_iovec(bio); 930 buf->bv = bv = bio_iovec(bio);
931 buf->bv_resid = bv->bv_len; 931 buf->bv_resid = bv->bv_len;
932 WARN_ON(buf->bv_resid == 0); 932 WARN_ON(buf->bv_resid == 0);
933} 933}