From: Ken-ichirou MATSUZAWA Date: Tue, 5 Jan 2016 00:29:54 +0000 (+0900) Subject: netfilter: nfnetlink_queue: don't handle options after unbind X-Git-Tag: MMI-PSA29.97-13-9~8298^2~384^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17bc6b4884340b045e779be38ba9f574256866a2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git netfilter: nfnetlink_queue: don't handle options after unbind This patch stops processing after destroying a queue instance. Signed-off-by: Ken-ichirou MATSUZAWA Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index fe360f7dd146..57951ce621b1 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -1176,7 +1176,7 @@ static int nfqnl_recv_config(struct net *net, struct sock *ctnl, goto err_out_unlock; } instance_destroy(q, queue); - break; + goto err_out_unlock; case NFQNL_CFG_CMD_PF_BIND: case NFQNL_CFG_CMD_PF_UNBIND: break;