summaryrefslogtreecommitdiffstats
path: root/crypto/af_alg.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-06-09 17:14:04 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2022-08-09 04:37:23 +0200
commitdc5801f60b269a73fcce789856c99d1845f75827 (patch)
tree68f51452e8a348ecb4220648acc8624ed3d3cd48 /crypto/af_alg.c
parentiter_to_pipe(): switch to advancing variant of iov_iter_get_pages() (diff)
downloadlinux-dc5801f60b269a73fcce789856c99d1845f75827.tar.xz
linux-dc5801f60b269a73fcce789856c99d1845f75827.zip
af_alg_make_sg(): switch to advancing variant of iov_iter_get_pages()
... and adjust the callers Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'crypto/af_alg.c')
-rw-r--r--crypto/af_alg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index c8289b7a85ba..e893c0f6c879 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -404,7 +404,7 @@ int af_alg_make_sg(struct af_alg_sgl *sgl, struct iov_iter *iter, int len)
ssize_t n;
int npages, i;
- n = iov_iter_get_pages(iter, sgl->pages, len, ALG_MAX_PAGES, &off);
+ n = iov_iter_get_pages2(iter, sgl->pages, len, ALG_MAX_PAGES, &off);
if (n < 0)
return n;
@@ -1191,7 +1191,6 @@ int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags,
len += err;
atomic_add(err, &ctx->rcvused);
rsgl->sg_num_bytes = err;
- iov_iter_advance(&msg->msg_iter, err);
}
*outlen = len;