mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
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 <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3f822c6264
commit
7e8631e8b9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user