Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be2b6e62 authored by David S. Miller's avatar David S. Miller
Browse files

net: Fix skb_copy_expand() handling of ->csum_start



It should only be adjusted if ip_summed == CHECKSUM_PARTIAL.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 00c5a983
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -932,6 +932,7 @@ struct sk_buff *skb_copy_expand(const struct sk_buff *skb,
	copy_skb_header(n, skb);

	off                  = newheadroom - oldheadroom;
	if (n->ip_summed == CHECKSUM_PARTIAL)
		n->csum_start += off;
#ifdef NET_SKBUFF_DATA_USES_OFFSET
	n->transport_header += off;