| From 7e8631e8b9d4e9f698c09c7e7309c96249180ff9 Mon Sep 17 00:00:00 2001 |
| From: Al Viro <viro@zeniv.linux.org.uk> |
| Date: Wed, 5 Nov 2014 15:18:29 -0500 |
| Subject: fix breakage in o2net_send_tcp_msg() |
| |
| From: Al Viro <viro@zeniv.linux.org.uk> |
| |
| commit 7e8631e8b9d4e9f698c09c7e7309c96249180ff9 upstream. |
| |
| uninitialized msghdr. Broken in "ocfs2: don't open-code kernel_recvmsg()" |
| by me ;-/ |
| |
| Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| |
| --- |
| fs/ocfs2/cluster/tcp.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/fs/ocfs2/cluster/tcp.c |
| +++ b/fs/ocfs2/cluster/tcp.c |
| @@ -925,7 +925,7 @@ static int o2net_send_tcp_msg(struct soc |
| size_t veclen, size_t total) |
| { |
| int ret; |
| - struct msghdr msg; |
| + struct msghdr msg = {.msg_flags = 0,}; |
| |
| if (sock == NULL) { |
| ret = -EINVAL; |