Skip to content

Commit

Permalink
fix breakage in o2net_send_tcp_msg()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Nov 5, 2014
1 parent 3f822c6 commit 7e8631e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/cluster/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e8631e

Please sign in to comment.