mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
[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>
This commit is contained in:
parent
f414c16c04
commit
9a36e8c2b3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user