diff options
author | Michal Miroslaw <mirq-linux@rere.qmqm.pl> | 2007-03-23 14:11:48 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:27:39 -0400 |
commit | 9a36e8c2b337c424ed77f5dea0a67dc8039d351b (patch) | |
tree | a32a244311e52efa48e7a66bfa2e548f65bec07a | |
parent | f414c16c04b1c998e90370791f9a728e292146ea (diff) |
[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>
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index d4b45e28ebde..441f0fbcfb26 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, | |||
825 | } | 825 | } |
826 | 826 | ||
827 | instance_destroy(inst); | 827 | instance_destroy(inst); |
828 | break; | 828 | goto out; |
829 | case NFULNL_CFG_CMD_PF_BIND: | 829 | case NFULNL_CFG_CMD_PF_BIND: |
830 | UDEBUG("registering log handler for pf=%u\n", pf); | 830 | UDEBUG("registering log handler for pf=%u\n", pf); |
831 | ret = nf_log_register(pf, &nfulnl_logger); | 831 | ret = nf_log_register(pf, &nfulnl_logger); |