Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0659eea9 authored by Fan Du's avatar Fan Du Committed by Steffen Klassert
Browse files

xfrm: Delete hold_timer when destroy policy



Both policy timer and hold_timer need to be deleted when destroy policy

Signed-off-by: default avatarFan Du <fan.du@windriver.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 8603b955
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -308,7 +308,7 @@ void xfrm_policy_destroy(struct xfrm_policy *policy)
{
	BUG_ON(!policy->walk.dead);

	if (del_timer(&policy->timer))
	if (del_timer(&policy->timer) || del_timer(&policy->polq.hold_timer))
		BUG();

	security_xfrm_policy_free(policy->security);