From: Jozsef Kadlecsik Date: Mon, 23 May 2011 08:22:47 +0000 (+0200) Subject: ip_set_flush returned -EPROTO instead of -IPSET_ERR_PROTOCOL, fixed X-Git-Tag: v6.6~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeaeb9ff5d44b196b8a4cb3d19bb3b75d176ed4e;p=ipset ip_set_flush returned -EPROTO instead of -IPSET_ERR_PROTOCOL, fixed --- diff --git a/kernel/net/netfilter/ipset/ip_set_core.c b/kernel/net/netfilter/ipset/ip_set_core.c index 41205d0..f093b01 100644 --- a/kernel/net/netfilter/ipset/ip_set_core.c +++ b/kernel/net/netfilter/ipset/ip_set_core.c @@ -825,7 +825,7 @@ ip_set_flush(struct sock *ctnl, struct sk_buff *skb, ip_set_id_t i; if (unlikely(protocol_failed(attr))) - return -EPROTO; + return -IPSET_ERR_PROTOCOL; if (!attr[IPSET_ATTR_SETNAME]) { for (i = 0; i < ip_set_max; i++)