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)
commit2632616bc484de9281bc2a1f5b033325783f8a10
treeb88e37332b1bb08239b5664e72e82f84f51d15d7
parenta986a05de95b730fd6a00b2b2f82a06d917fd6a2
sock: propagate __sock_cmsg_send() error

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

Fixes: 24025c465f77 ("ipv4: process socket-level control messages in IPv4")
Fixes: ad1e46a83716 ("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