Commit 2b5be1a7 authored by Eugene Surovegin's avatar Eugene Surovegin Committed by Stephen Hemminger

[IPSEC]: Add missing flow_cache_genid update to xfrm_policy_delete()

Signed-off-by: default avatarEugene Surovegin <ebs@ebshome.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent 22b11292
......@@ -536,8 +536,11 @@ void xfrm_policy_delete(struct xfrm_policy *pol, int dir)
write_lock_bh(&xfrm_policy_lock);
pol = __xfrm_policy_unlink(pol, dir);
write_unlock_bh(&xfrm_policy_lock);
if (pol)
if (pol) {
if (dir < XFRM_POLICY_MAX)
atomic_inc(&flow_cache_genid);
xfrm_policy_kill(pol);
}
}
int xfrm_sk_policy_insert(struct sock *sk, int dir, struct xfrm_policy *pol)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment