Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1c512a7c
Commit
1c512a7c
authored
Feb 17, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/9p: switch to copy_from_iter_full()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
3073f070
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
net/9p/client.c
net/9p/client.c
+2
-3
net/9p/protocol.c
net/9p/protocol.c
+1
-1
No files found.
net/9p/client.c
View file @
1c512a7c
...
...
@@ -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
;
}
...
...
net/9p/protocol.c
View file @
1c512a7c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment