From: Alexander Aring Date: Fri, 10 Oct 2014 21:10:47 +0000 (+0200) Subject: skbuff: fix ftrace handling in skb_unshare X-Git-Tag: fixes-against-v3.18-rc2~61^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31eff81e94472ddb7549509bf4b6e93e1f6f7dc9;p=pandora-kernel.git skbuff: fix ftrace handling in skb_unshare If the skb is not dropped afterwards we should run consume_skb instead kfree_skb. Inside of function skb_unshare we do always a kfree_skb, doesn't depend if skb_copy failed or was successful. This patch switch this behaviour like skb_share_check, if allocation of sk_buff failed we use kfree_skb otherwise consume_skb. Signed-off-by: Alexander Aring Signed-off-by: David S. Miller --- Reading git-diff-tree failed