block: Fix bio_copy_data()
authorKent Overstreet <kmo@daterainc.com>
Tue, 24 Sep 2013 06:17:26 +0000 (23:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:09 +0000 (07:13 -0700)
commit9204e9dd40ce207074419e60f66922ce47bb1b79
treeeb74a261d8b282a8b71544dc782b8d4c273b0321
parent8c15abc94c737f9120d3d4a550abbcbb9be121f6
block: Fix bio_copy_data()

commit 2f6cf0de0281d210061ce976f2d42d246adc75bb upstream.

The memcpy() in bio_copy_data() was using the wrong offset vars, leading
to data corruption in weird unusual setups.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/bio.c