diff options
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 51c059b09a37..36388b2f32f9 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -775,7 +775,7 @@ static int packet_sendmsg(struct kiocb *iocb, struct socket *sock, | |||
775 | err = -EINVAL; | 775 | err = -EINVAL; |
776 | res = dev->hard_header(skb, dev, ntohs(proto), addr, NULL, len); | 776 | res = dev->hard_header(skb, dev, ntohs(proto), addr, NULL, len); |
777 | if (sock->type != SOCK_DGRAM) { | 777 | if (sock->type != SOCK_DGRAM) { |
778 | skb->tail = skb->data; | 778 | skb_reset_tail_pointer(skb); |
779 | skb->len = 0; | 779 | skb->len = 0; |
780 | } else if (res < 0) | 780 | } else if (res < 0) |
781 | goto out_free; | 781 | goto out_free; |