Skip to content

Commit 4fa55ce

Browse files
author
Al Viro
committed
fix a braino in ITER_PIPE iov_iter_revert()
Fixes: 27c0e37 Tested-by: Dave Jones <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent 1741937 commit 4fa55ce

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)