Commit 3b6d4dbf09d12fdef8c8388962ae9a2da6890a47

Authored by Al Viro
1 parent 1c512a7ca9

sctp: switch to copy_from_iter_full()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff

net/sctp/sm_make_chunk.c
... ... @@ -1512,14 +1512,12 @@
1512 1512 struct iov_iter *from)
1513 1513 {
1514 1514 void *target;
1515   - ssize_t copied;
1516 1515  
1517 1516 /* Make room in chunk for data. */
1518 1517 target = skb_put(chunk->skb, len);
1519 1518  
1520 1519 /* Copy data (whole iovec) into chunk */
1521   - copied = copy_from_iter(target, len, from);
1522   - if (copied != len)
  1520 + if (!copy_from_iter_full(target, len, from))
1523 1521 return -EFAULT;
1524 1522  
1525 1523 /* Adjust the chunk length field. */