From: Patrick McHardy Date: Tue, 18 Dec 2007 06:40:19 +0000 (-0800) Subject: [NETFILTER]: nfnetlink_{queue,log}: return ENOTSUPP for unknown cfg commands X-Git-Tag: v2.6.25-rc1~1162^2~1005 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cd21f0ac43f8d7f23573a01ada7fb2c96e686ff8;p=linux-2.6-omap-h63xx.git [NETFILTER]: nfnetlink_{queue,log}: return ENOTSUPP for unknown cfg commands Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index 3dcc6f51a52..325e93a9059 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c @@ -798,7 +798,7 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb, nf_log_unregister_pf(pf); break; default: - ret = -EINVAL; + ret = -ENOTSUPP; break; } } diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index d94de48f6cd..370f0af50f4 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -740,7 +740,7 @@ nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb, case NFQNL_CFG_CMD_PF_UNBIND: break; default: - ret = -EINVAL; + ret = -ENOTSUPP; break; } }