fix breakage in o2net_send_tcp_msg()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 5 Nov 2014 20:18:29 +0000 (15:18 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 5 Nov 2014 20:21:18 +0000 (15:21 -0500)
uninitialized msghdr.  Broken in "ocfs2: don't open-code kernel_recvmsg()"
by me ;-/

Cc: stable@vger.kernel.org # 3.15+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/cluster/tcp.c

index 97de0fbd9f784196312d2330b34e43873b6c6ecc..a9604400406491744281dfaee496491e36f5a074 100644 (file)
@@ -925,7 +925,7 @@ static int o2net_send_tcp_msg(struct socket *sock, struct kvec *vec,
                              size_t veclen, size_t total)
 {
        int ret;
-       struct msghdr msg;
+       struct msghdr msg = {.msg_flags = 0,};
 
        if (sock == NULL) {
                ret = -EINVAL;