diff options
author | David S. Miller <davem@davemloft.net> | 2010-07-22 16:27:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-22 16:27:09 -0400 |
commit | be2b6e62357dd7ee56bdcb05e54002afb4830292 (patch) | |
tree | 7a166ad319bad5756a49beb060b91234a3de5510 /net | |
parent | 00c5a9834b476a138158fb17d576da751727a9f1 (diff) |
net: Fix skb_copy_expand() handling of ->csum_start
It should only be adjusted if ip_summed == CHECKSUM_PARTIAL.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/skbuff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index c699159b3ede..ce88293a34e2 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -932,7 +932,8 @@ struct sk_buff *skb_copy_expand(const struct sk_buff *skb, | |||
932 | copy_skb_header(n, skb); | 932 | copy_skb_header(n, skb); |
933 | 933 | ||
934 | off = newheadroom - oldheadroom; | 934 | off = newheadroom - oldheadroom; |
935 | n->csum_start += off; | 935 | if (n->ip_summed == CHECKSUM_PARTIAL) |
936 | n->csum_start += off; | ||
936 | #ifdef NET_SKBUFF_DATA_USES_OFFSET | 937 | #ifdef NET_SKBUFF_DATA_USES_OFFSET |
937 | n->transport_header += off; | 938 | n->transport_header += off; |
938 | n->network_header += off; | 939 | n->network_header += off; |