commit | 7eab8d9e8a722ca07bc785f73e21c3d3418defa6 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Apr 06 21:51:23 2014 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Nov 24 04:28:51 2014 -0500 |
tree | f42c78986668929d2a2b05d88c94a36dab7c1a36 | |
parent | e169371823827dae1fd1d15bceb0fe5497c1a5ba [diff] [blame] |
new helper: memcpy_to_msg() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index c239f47..435443b 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c
@@ -1349,7 +1349,7 @@ if (len > 0) { if (!(flags & MSG_TRUNC)) - err = memcpy_toiovec(msg->msg_iov, &c, 1); + err = memcpy_to_msg(msg, &c, 1); len = 1; } else msg->msg_flags |= MSG_TRUNC;