Skip to content

Commit

Permalink
netfilter: nft_flow_offload: fix underflow in flowtable reference cou…
Browse files Browse the repository at this point in the history
…nter

The .deactivate and .activate interfaces already deal with the reference
counter. Otherwise, this results in spurious "Device is busy" errors.

Fixes: a3c90f7 ("netfilter: nf_tables: flow offload expression")
Signed-off-by: wenxu <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
  • Loading branch information
wenxu authored and ummakynes committed Jan 5, 2020
1 parent 1b78957 commit 8ca7960
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/netfilter/nft_flow_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,6 @@ static void nft_flow_offload_activate(const struct nft_ctx *ctx,
static void nft_flow_offload_destroy(const struct nft_ctx *ctx,
const struct nft_expr *expr)
{
struct nft_flow_offload *priv = nft_expr_priv(expr);

priv->flowtable->use--;
nf_ct_netns_put(ctx->net, ctx->family);
}

Expand Down

0 comments on commit 8ca7960

Please sign in to comment.