Skip to content

Commit 5cd856a

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
Pablo Neira Ayuso says: ==================== Netfilter/IPVS fixes for net The following patchset contains Netfilter/IPVS fixes for net: 1) Follow up patch to fix a compilation warning in a recent IPVS fix: 098e13f ("ipvs: fix dependency on nf_defrag_ipv6"). 2) Bogus ENOENT error on flush after rule deletion in the same batch, reported by Phil Sutter. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 1f43f40 + c93a49b commit 5cd856a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

net/netfilter/ipvs/ip_vs_ctl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,12 +896,13 @@ ip_vs_new_dest(struct ip_vs_service *svc, struct ip_vs_dest_user_kern *udest,
896896
{
897897
struct ip_vs_dest *dest;
898898
unsigned int atype, i;
899-
int ret = 0;
900899

901900
EnterFunction(2);
902901

903902
#ifdef CONFIG_IP_VS_IPV6
904903
if (udest->af == AF_INET6) {
904+
int ret;
905+
905906
atype = ipv6_addr_type(&udest->addr.in6);
906907
if ((!(atype & IPV6_ADDR_UNICAST) ||
907908
atype & IPV6_ADDR_LINKLOCAL) &&

net/netfilter/nf_tables_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ static int nft_delrule_by_chain(struct nft_ctx *ctx)
313313
int err;
314314

315315
list_for_each_entry(rule, &ctx->chain->rules, list) {
316+
if (!nft_is_active_next(ctx->net, rule))
317+
continue;
318+
316319
err = nft_delrule(ctx, rule);
317320
if (err < 0)
318321
return err;

0 commit comments

Comments
 (0)