Commit cdfa1fe5 by Cong Wang Committed by Steffen Klassert

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: 's avatarCong Wang <> Signed-off-by: 's avatarSteffen Klassert <>
parent cef401de
......@@ -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_set_owner_r(*skb2, sk);
skb_queue_tail(&sk->sk_receive_queue, *skb2);
sk->sk_data_ready(sk, (*skb2)->len);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment