block: Fix bio_copy_data()
authorKent Overstreet <kmo@daterainc.com>
Tue, 24 Sep 2013 06:17:26 +0000 (23:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 24 Sep 2013 21:41:42 +0000 (14:41 -0700)
commit2f6cf0de0281d210061ce976f2d42d246adc75bb
treeae0e24e3410750aa0a44061cc5a0ced9c3128670
parent4a10c2ac2f368583138b774ca41fac4207911983
block: Fix bio_copy_data()

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>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.9
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/bio.c