: forgotten dev_put for bridge-devices in nf_reinject (fwd)
Subsystems (2)
PATCH 1/1 : forgotten dev_put for bridge-devices in nf_reinject (fwd)
---------- Forwarded message ----------
Date: Tue, 10 Dec 2002 14:35:58 +0100
From: Patrick McHardy <[email protected]>
To: Netfilter Development Mailinglist <[email protected]>
Cc: [email protected]
Subject: [PATCH]: forgotten dev_put for bridge-devices in nf_reinject
Hi.
The attached patch releases the bridge devices grabbed in nf_queue after reinjecting the packet. Seems someone forgot these (or planned to get Rusty killed) ;)
Bye,
Patrick
net/core/netfilter.c renamed from net/core/netfilter.c.orig +9 -1
@@ -574,7 +574,15 @@/* Release those devices we held, or Alexey will kill me. */ if (info->indev)dev_put (info->indev);if (info->outdev)dev_put (info->outdev); - +#if defined(CONFIG_BRIDGE ) || defined(CONFIG_BRIDGE_MODULE ) +if (skb->nf_bridge) { +if (skb->nf_bridge->physindev) +dev_put (skb->nf_bridge->physindev); +if (skb->nf_bridge->physoutdev) +dev_put (skb->nf_bridge->physoutdev); + } +#endif +kfree (info);return ; }