projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c512a7
)
sctp: switch to copy_from_iter_full()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 18 Feb 2017 04:17:41 +0000
(23:17 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 21 Apr 2017 17:57:27 +0000
(13:57 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/sctp/sm_make_chunk.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sctp/sm_make_chunk.c
b/net/sctp/sm_make_chunk.c
index 118faff6a332ee24caf3d772b6f00641128ef104..8a08f13469c4cc26aeec55de6793b2c2e3c562a6 100644
(file)
--- a/
net/sctp/sm_make_chunk.c
+++ b/
net/sctp/sm_make_chunk.c
@@
-1512,14
+1512,12
@@
int sctp_user_addto_chunk(struct sctp_chunk *chunk, int len,
struct iov_iter *from)
{
void *target;
- ssize_t copied;
/* Make room in chunk for data. */
target = skb_put(chunk->skb, len);
/* Copy data (whole iovec) into chunk */
- copied = copy_from_iter(target, len, from);
- if (copied != len)
+ if (!copy_from_iter_full(target, len, from))
return -EFAULT;
/* Adjust the chunk length field. */