Skip to content

Commit 9d88323

Browse files
Jozsef Kadlecsikkaber
authored andcommitted
netfilter: ipset: fix return code for destroy when sets are in use
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> Signed-off-by: Patrick McHardy <kaber@trash.net>
1 parent b66554c commit 9d88323

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/netfilter/ipset/ip_set_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ ip_set_destroy(struct sock *ctnl, struct sk_buff *skb,
776776
if (!attr[IPSET_ATTR_SETNAME]) {
777777
for (i = 0; i < ip_set_max; i++) {
778778
if (ip_set_list[i] != NULL && ip_set_list[i]->ref) {
779-
ret = IPSET_ERR_BUSY;
779+
ret = -IPSET_ERR_BUSY;
780780
goto out;
781781
}
782782
}

0 commit comments

Comments
 (0)