From: Ken-ichirou MATSUZAWA Date: Tue, 5 Jan 2016 00:31:40 +0000 (+0900) Subject: netfilter: nfnetlink_queue: just returns error for unknown command X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21c3c971d1eb5d5598ddb1eda2fc3e4d2c992182;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git netfilter: nfnetlink_queue: just returns error for unknown command This patch stops processing options for unknown command. 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 57951ce621b1..c1f6df4cfe88 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -1182,7 +1182,7 @@ static int nfqnl_recv_config(struct net *net, struct sock *ctnl, break; default: ret = -ENOTSUPP; - break; + goto err_out_unlock; } }