Thread (16 messages) 16 messages, 5 authors, 2012-08-10

Re: [PATCH] ipv4: tcp: security_sk_alloc() needed for unicast_sock

flat view

From: David Miller <davem@davemloft.net>
Date: 2012-08-09 23:38:54
Also in: lkml

From: Eric Dumazet <redacted>
Date: Thu, 09 Aug 2012 23:29:03 +0200
quoted hunk ↗ jump to hunk
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 76dde25..ec410e0 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -1536,6 +1536,7 @@ void ip_send_unicast_reply(struct net *net, struct sk_buff *skb, __be32 daddr,
 			  arg->csumoffset) = csum_fold(csum_add(nskb->csum,
 								arg->csum));
 		nskb->ip_summed = CHECKSUM_NONE;
+		skb_orphan(nskb);
 		skb_set_queue_mapping(nskb, skb_get_queue_mapping(skb));
 		ip_push_pending_frames(sk, &fl4);
 	}
This is definitely the best fix, please submit this formally.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help