Fix bug in blk_rq_merge_ok
authorWenbo Wang <[email protected]>
Fri, 20 Mar 2015 05:04:54 +0000 (01:04 -0400)
committerJens Axboe <[email protected]>
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 <[email protected]>
Reviewed-by: Chong Yuan <[email protected]>
Fixes: 66cb45aa41315 ("block: add support for limiting gaps in SG lists")
Cc: [email protected]
Signed-off-by: Jens Axboe <[email protected]>
block/blk-merge.c