]> git.baikalelectronics.ru Git - kernel.git/commit
bio_copy_user_iov(): don't ignore ->iov_offset
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Sep 2017 14:21:15 +0000 (10:21 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Oct 2017 03:55:14 +0000 (23:55 -0400)
commit8886b51b51e234d3d9123c36d623f1ec72f41ef6
treed947cd8a4539b38383065b80d1cc1e3dff6df948
parent7544dcb17df09075cec70072c12bb65b8463430b
bio_copy_user_iov(): don't ignore ->iov_offset

Since "block: support large requests in blk_rq_map_user_iov" we
started to call it with partially drained iter; that works fine
on the write side, but reads create a copy of iter for completion
time.  And that needs to take the possibility of ->iov_iter != 0
into account...

Cc: stable@vger.kernel.org #v4.5+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
block/bio.c