Commit 545ac82c authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[Netfilter]: Forgotten dev_put for bridge-devices in nf_reinject.

parent d3bf7b06
...@@ -574,6 +574,14 @@ void nf_reinject(struct sk_buff *skb, struct nf_info *info, ...@@ -574,6 +574,14 @@ void nf_reinject(struct sk_buff *skb, struct nf_info *info,
/* Release those devices we held, or Alexey will kill me. */ /* Release those devices we held, or Alexey will kill me. */
if (info->indev) dev_put(info->indev); if (info->indev) dev_put(info->indev);
if (info->outdev) dev_put(info->outdev); 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); kfree(info);
return; return;
......
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