packet: propagate sock_cmsg_send() error
authorSoheil Hassas Yeganeh <soheil@google.com>
Wed, 20 Jul 2016 22:01:18 +0000 (18:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2016 05:41:48 +0000 (01:41 -0400)
commitf8e7718cc0445587fe8530fc2d240d9aac2c9072
tree26133ea508e6001b91adef1482973c8b528927a5
parent882b0f2fba83374149f0a5869d95aa8b44dad31e
packet: propagate sock_cmsg_send() error

sock_cmsg_send() can return different error codes and not only
-EINVAL, and we should properly propagate them.

Fixes: c14ac9451c34 ("sock: enable timestamping using control messages")
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c