aboutsummaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
Diffstat (limited to 'net/packet')
-rw-r--r--net/packet/af_packet.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 33e68f20ec61..95ef64e4189a 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -984,10 +984,7 @@ static int tpacket_snd(struct packet_sock *po, struct msghdr *msg)
984 goto out_put; 984 goto out_put;
985 985
986 size_max = po->tx_ring.frame_size 986 size_max = po->tx_ring.frame_size
987 - sizeof(struct skb_shared_info) 987 - (po->tp_hdrlen - sizeof(struct sockaddr_ll));
988 - po->tp_hdrlen
989 - LL_ALLOCATED_SPACE(dev)
990 - sizeof(struct sockaddr_ll);
991 988
992 if (size_max > dev->mtu + reserve) 989 if (size_max > dev->mtu + reserve)
993 size_max = dev->mtu + reserve; 990 size_max = dev->mtu + reserve;