diff options
| author | Jon Grimm <jgrimm2@us.ibm.com> | 2003-03-22 09:23:43 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-03-22 09:23:43 -0800 |
| commit | e5c1202f2ad98663dc1ecaaa4a21a6773ea1c9fb (patch) | |
| tree | 06c6abc8c3a553a9274eb8b122daf3f8560f6964 | |
| parent | 3c5a38240bce76c29a2409397e75af3b90f21073 (diff) | |
[IPSEC]: Fix SKB alloc len in ip6_build_xmit.
| -rw-r--r-- | net/ipv6/ip6_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 5400e7e17af8..02206d65a768 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -643,7 +643,8 @@ int ip6_build_xmit(struct sock *sk, inet_getfrag_t getfrag, const void *data, if (flags&MSG_PROBE) goto out; /* alloc skb with mtu as we do in the IPv4 stack for IPsec */ - skb = sock_alloc_send_skb(sk, mtu, flags & MSG_DONTWAIT, &err); + skb = sock_alloc_send_skb(sk, mtu + LL_RESERVED_SPACE(dev), + flags & MSG_DONTWAIT, &err); if (skb == NULL) { IP6_INC_STATS(Ip6OutDiscards); |
