From: Al Viro Date: Wed, 5 Nov 2014 20:18:29 +0000 (-0500) Subject: fix breakage in o2net_send_tcp_msg() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e8631e8b9d4e9f698c09c7e7309c96249180ff9;p=openwrt%2Fstaging%2Fblogic.git fix breakage in o2net_send_tcp_msg() 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 --- diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index 97de0fbd9f78..a96044004064 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocfs2/cluster/tcp.c @@ -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;