]> 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)
commit09ffc32f5095359c34b5a49a9a79934a6ddf298c
treeae0e24e3410750aa0a44061cc5a0ced9c3128670
parent8c68cf8383040c425e62cbc61b0baa60d7e7b5e0
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