]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedf340d7af580774149f879362b3e0f28c6e52e0
treeae0e24e3410750aa0a44061cc5a0ced9c3128670
parent1d1d72c43a6012ec577024270053d83c033df9d9
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