Fix bug in blk_rq_merge_ok
authorWenbo Wang <wenbo.wang@memblaze.com>
Fri, 20 Mar 2015 05:04:54 +0000 (01:04 -0400)
committerJens Axboe <axboe@fb.com>
Fri, 20 Mar 2015 14:50:41 +0000 (08:50 -0600)
commit7ee8e4f3983c4ff700958a6099c8fd212ea67b94
tree26208113a37530a9918c72f20490c34f076b5983
parentbc188d818edf325ae38cfa43254a0b10a4defd65
Fix bug in blk_rq_merge_ok

Use the right array index to reference the last
element of rq->biotail->bi_io_vec[]

Signed-off-by: Wenbo Wang <wenbo.wang@memblaze.com>
Reviewed-by: Chong Yuan <chong.yuan@memblaze.com>
Fixes: 66cb45aa41315 ("block: add support for limiting gaps in SG lists")
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-merge.c