All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH PKT_SCHED 16/22]: ipt action: fix missing unlock on error path
@ 2005-01-10 19:38 Patrick McHardy
  0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2005-01-10 19:38 UTC (permalink / raw)
  To: jamal; +Cc: Maillist netdev

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 16.diff --]
[-- Type: text/x-patch, Size: 1091 bytes --]

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/01/10 02:54:57+01:00 kaber@coreworks.de 
#   [PKT_SCHED]: ipt action: fix missing unlock on error path
#   
#   Simply kill the pskb_expand_head, iptables targets already take care
#   of cloned packets.
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
# net/sched/ipt.c
#   2005/01/10 02:50:16+01:00 kaber@coreworks.de +0 -4
#   [PKT_SCHED]: ipt_action: fix missing unlock on error path
#   
#   Simply kill the pskb_expand_head, iptables targets already take care
#   of cloned packets.
#   
#   Signed-off-by: Patrick McHardy <kaber@trash.net>
# 
diff -Nru a/net/sched/ipt.c b/net/sched/ipt.c
--- a/net/sched/ipt.c	2005-01-10 06:22:53 +01:00
+++ b/net/sched/ipt.c	2005-01-10 06:22:53 +01:00
@@ -202,10 +202,6 @@
 	p->bstats.bytes += skb->len;
 	p->bstats.packets++;
 
-	if (skb_cloned(skb) ) {
-		if (pskb_expand_head(skb, 0, 0, GFP_ATOMIC))
-			return -1;
-	}
 	/* yes, we have to worry about both in and out dev
 	 worry later - danger - this API seems to have changed
 	 from earlier kernels */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-10 19:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 19:38 [PATCH PKT_SCHED 16/22]: ipt action: fix missing unlock on error path Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.