Skip to content

Commit 8c9a694

Browse files
committed
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()
2 parents 0060e79 + 4fa55ce commit 8c9a694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iov_iter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ void iov_iter_revert(struct iov_iter *i, size_t unroll)
798798
while (1) {
799799
size_t n = off - pipe->bufs[idx].offset;
800800
if (unroll < n) {
801-
off -= (n - unroll);
801+
off -= unroll;
802802
break;
803803
}
804804
unroll -= n;

0 commit comments

Comments
 (0)