summaryrefslogtreecommitdiffstats
path: root/net/9p/protocol.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2022-06-10 17:42:02 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2022-08-09 04:37:23 +0200
commit7f02464739da05a51cadb997a00a301f734e9c87 (patch)
treee6c64ebf97aa1d43481447f70444710ba61c52e3 /net/9p/protocol.c
parentaf_alg_make_sg(): switch to advancing variant of iov_iter_get_pages() (diff)
downloadlinux-7f02464739da05a51cadb997a00a301f734e9c87.tar.xz
linux-7f02464739da05a51cadb997a00a301f734e9c87.zip
9p: convert to advancing variant of iov_iter_get_pages_alloc()
that one is somewhat clumsier than usual and needs serious testing. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/9p/protocol.c')
-rw-r--r--net/9p/protocol.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/9p/protocol.c b/net/9p/protocol.c
index 3754c33e2974..83694c631989 100644
--- a/net/9p/protocol.c
+++ b/net/9p/protocol.c
@@ -63,9 +63,8 @@ static size_t
pdu_write_u(struct p9_fcall *pdu, struct iov_iter *from, size_t size)
{
size_t len = min(pdu->capacity - pdu->size, size);
- struct iov_iter i = *from;
- if (!copy_from_iter_full(&pdu->sdata[pdu->size], len, &i))
+ if (!copy_from_iter_full(&pdu->sdata[pdu->size], len, from))
len = 0;
pdu->size += len;