aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorMichal Miroslaw <mirq-linux@rere.qmqm.pl>2007-03-23 11:11:48 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:27:39 -0700
commit9a36e8c2b337c424ed77f5dea0a67dc8039d351b (patch)
treea32a244311e52efa48e7a66bfa2e548f65bec07a /net/netfilter
parentf414c16c04b1c998e90370791f9a728e292146ea (diff)
downloadkernel_samsung_espresso10-9a36e8c2b337c424ed77f5dea0a67dc8039d351b.zip
kernel_samsung_espresso10-9a36e8c2b337c424ed77f5dea0a67dc8039d351b.tar.gz
kernel_samsung_espresso10-9a36e8c2b337c424ed77f5dea0a67dc8039d351b.tar.bz2
[NETFILTER]: nfnetlink_log: micro-optimization: don't modify destroyed instance
Simple micro-optimization: Don't change any options if the instance is being destroyed. Signed-off-by: Michal Miroslaw <mirq-linux@rere.qmqm.pl> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nfnetlink_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index d4b45e2..441f0fb 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -825,7 +825,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
}
instance_destroy(inst);
- break;
+ goto out;
case NFULNL_CFG_CMD_PF_BIND:
UDEBUG("registering log handler for pf=%u\n", pf);
ret = nf_log_register(pf, &nfulnl_logger);