diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-02-18 05:16:09 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-04-21 19:57:22 +0200 |
commit | 1c512a7ca943575a3fbca6d6366d41e5c7c7d539 (patch) | |
tree | 095cd4782a0ee6a593c840ae6523f84e85ad910a /net/9p/protocol.c | |
parent | switch memcpy_from_msg() to copy_from_iter_full() (diff) | |
download | linux-1c512a7ca943575a3fbca6d6366d41e5c7c7d539.tar.xz linux-1c512a7ca943575a3fbca6d6366d41e5c7c7d539.zip |
net/9p: switch to copy_from_iter_full()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/9p/protocol.c')
-rw-r--r-- | net/9p/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/protocol.c b/net/9p/protocol.c index 16d287565987..16e10680518c 100644 --- a/net/9p/protocol.c +++ b/net/9p/protocol.c @@ -74,7 +74,7 @@ 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(&pdu->sdata[pdu->size], len, &i) != len) + if (!copy_from_iter_full(&pdu->sdata[pdu->size], len, &i)) len = 0; pdu->size += len; |