Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull iov iter fix from Al Viro. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fix a braino in ITER_PIPE iov_iter_revert()
This commit is contained in:
commit
8c9a694dc0
|
@ -798,7 +798,7 @@ void iov_iter_revert(struct iov_iter *i, size_t unroll)
|
|||
while (1) {
|
||||
size_t n = off - pipe->bufs[idx].offset;
|
||||
if (unroll < n) {
|
||||
off -= (n - unroll);
|
||||
off -= unroll;
|
||||
break;
|
||||
}
|
||||
unroll -= n;
|
||||
|
|
Loading…
Reference in New Issue