mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-12-18 08:26:08 +01:00
fix a braino in ITER_PIPE iov_iter_revert()
Fixes: 27c0e3748e
Tested-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
1741937d47
commit
4fa55cefee
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user