summaryrefslogtreecommitdiffstats
path: root/net/9p/client.c
diff options
context:
space:
mode:
authorAl Viro2017-02-18 05:16:09 +0100
committerAl Viro2017-04-21 19:57:22 +0200
commit1c512a7ca943575a3fbca6d6366d41e5c7c7d539 (patch)
tree095cd4782a0ee6a593c840ae6523f84e85ad910a /net/9p/client.c
parentswitch memcpy_from_msg() to copy_from_iter_full() (diff)
downloadkernel-qcow2-linux-1c512a7ca943575a3fbca6d6366d41e5c7c7d539.tar.gz
kernel-qcow2-linux-1c512a7ca943575a3fbca6d6366d41e5c7c7d539.tar.xz
kernel-qcow2-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/client.c')
-rw-r--r--net/9p/client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index 8e5c6a8d0a37..1218fb3b52da 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -592,9 +592,8 @@ static int p9_check_zc_errors(struct p9_client *c, struct p9_req_t *req,
ename = &req->rc->sdata[req->rc->offset];
if (len > inline_len) {
/* We have error in external buffer */
- err = copy_from_iter(ename + inline_len,
- len - inline_len, uidata);
- if (err != len - inline_len) {
+ if (!copy_from_iter_full(ename + inline_len,
+ len - inline_len, uidata)) {
err = -EFAULT;
goto out_err;
}