Skip to content
Snippets Groups Projects
Commit 4fa55cef authored by Al Viro's avatar Al Viro
Browse files

fix a braino in ITER_PIPE iov_iter_revert()


Fixes: 27c0e374
Tested-by: default avatarDave Jones <davej@codemonkey.org.uk>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1741937d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment