From: Eric Dumazet Date: Fri, 13 Feb 2015 12:47:12 +0000 (-0800) Subject: tcp: make sure skb is not shared before using skb_get() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~52^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba34e6d9d346fe4e05d7e417b9edf5140772d34c;p=pandora-kernel.git tcp: make sure skb is not shared before using skb_get() IPv6 can keep a copy of SYN message using skb_get() in tcp_v6_conn_request() so that caller wont free the skb when calling kfree_skb() later. Therefore TCP fast open has to clone the skb it is queuing in child->sk_receive_queue, as all skbs consumed from receive_queue are freed using __kfree_skb() (ie assuming skb->users == 1) Signed-off-by: Eric Dumazet Signed-off-by: Yuchung Cheng Fixes: 5b7ed0892f2af ("tcp: move fastopen functions to tcp_fastopen.c") Signed-off-by: David S. Miller --- Reading git-diff-tree failed