diff options
author | David S. Miller <davem@davemloft.net> | 2009-10-30 05:28:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-30 05:28:59 +0100 |
commit | 0519d83d83ed485b5a1f9222ff69d7d6c9bb8a01 (patch) | |
tree | 2e336be8a4bd2e59bcd4b69b00feb77c6672a9cb /net/packet | |
parent | net,socket: introduce DECLARE_SOCKADDR helper to catch overflow at build time (diff) | |
parent | net: Fix 'Re: PACKET_TX_RING: packet size is too long' (diff) | |
download | linux-0519d83d83ed485b5a1f9222ff69d7d6c9bb8a01.tar.xz linux-0519d83d83ed485b5a1f9222ff69d7d6c9bb8a01.zip |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 5 |
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) goto out_put; size_max = po->tx_ring.frame_size - - sizeof(struct skb_shared_info) - - po->tp_hdrlen - - LL_ALLOCATED_SPACE(dev) - - sizeof(struct sockaddr_ll); + - (po->tp_hdrlen - sizeof(struct sockaddr_ll)); if (size_max > dev->mtu + reserve) size_max = dev->mtu + reserve; |