Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1fb3449 authored by Kent Overstreet's avatar Kent Overstreet Committed by Jens Axboe
Browse files

aoe: Fix unitialized var usage



Commit 4f2ac93c (block: Remove bi_idx
references) accidently removed the bit that set bv - readd that.

Signed-off-by: default avatarKent 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: default avatarJens Axboe <axboe@kernel.dk>
parent 705cd0ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -927,7 +927,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 = bio_iovec(bio);
	buf->bv = bv = bio_iovec(bio);
	buf->bv_resid = bv->bv_len;
	WARN_ON(buf->bv_resid == 0);
}