]> git.baikalelectronics.ru Git - kernel.git/commit
sock: propagate __sock_cmsg_send() error
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2016 13:14:37 +0000 (06:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:46:23 +0000 (13:46 -0400)
commitdcbda7736f91dd778839d5d2ed7b14a393150643
treeb88e37332b1bb08239b5664e72e82f84f51d15d7
parent16d59ec0f7835d0313f198c2c974cb88e1f56bb0
sock: propagate __sock_cmsg_send() error

__sock_cmsg_send() might return different error codes, not only -EINVAL.

Fixes: 137ebd30ce7b ("ipv4: process socket-level control messages in IPv4")
Fixes: 55629e957d9e ("ipv6: process socket-level control messages in IPv6")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c
net/ipv6/datagram.c