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
...@@ -798,7 +798,7 @@ void iov_iter_revert(struct iov_iter *i, size_t unroll) ...@@ -798,7 +798,7 @@ void iov_iter_revert(struct iov_iter *i, size_t unroll)
while (1) { while (1) {
size_t n = off - pipe->bufs[idx].offset; size_t n = off - pipe->bufs[idx].offset;
if (unroll < n) { if (unroll < n) {
off -= (n - unroll); off -= unroll;
break; break;
} }
unroll -= n; unroll -= n;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment