From: Cong Wang Date: Wed, 23 Jan 2013 14:52:27 +0000 (+0800) Subject: af_key: remove a duplicated skb_orphan() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cdfa1fe5c0d4f2815acfe8cd7730a0b3d8d0a3e9;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git af_key: remove a duplicated skb_orphan() skb_set_owner_r() will call skb_orphan(), I don't see any reason to call it twice. Cc: Steffen Klassert Cc: Herbert Xu Cc: "David S. Miller" Signed-off-by: Cong Wang Signed-off-by: Steffen Klassert --- diff --git a/net/key/af_key.c b/net/key/af_key.c index 5b426a646544..6a6e68479b97 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c @@ -203,7 +203,6 @@ static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2, } if (*skb2 != NULL) { if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf) { - skb_orphan(*skb2); skb_set_owner_r(*skb2, sk); skb_queue_tail(&sk->sk_receive_queue, *skb2); sk->sk_data_ready(sk, (*skb2)->len);