]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: fix segment split
authorMing Lei <ming.lei@canonical.com>
Tue, 24 Nov 2015 02:35:29 +0000 (10:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 05:41:09 +0000 (21:41 -0800)
commit278b54df14299e1cfbe6175e2a098bf0b6616611
tree03868fa9bebc50ab434d0cd8a16ebec264150f31
parenteeec50cb5826af4c70564ed49d88626439598327
block: fix segment split

commit 578270bfbd2803dc7b0b03fbc2ac119efbc73195 upstream.

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: 5014c311baa2b(block: fix bogus compiler warnings in blk-merge.c)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/blk-merge.c