]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix segment split
authorMing Lei <ming.lei@canonical.com>
Tue, 24 Nov 2015 02:35:29 +0000 (10:35 +0800)
committerJens Axboe <axboe@fb.com>
Tue, 24 Nov 2015 03:16:51 +0000 (20:16 -0700)
commit2461acdc88b481dd7f21ae8608c0a7e265d95c8a
treeb326c3879cfde7498f2c3c257951f5ae67b19502
parent0794e923f3b9288f06cfa71d7d1b5b5b6ae5ab7e
block: fix segment split

Inside blk_bio_segment_split(), previous bvec pointer(bvprvp)
always points to the iterator local variable, which is obviously
wrong, so fix it by pointing to the local variable of 'bvprv'.

Fixes: 24da4cf775ea8(block: fix bogus compiler warnings in blk-merge.c)
Cc: stable@kernel.org #4.3
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Reported-by: Mark Salter <msalter@redhat.com>
Tested-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Tested-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-merge.c