projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8603b95
)
xfrm: Delete hold_timer when destroy policy
author
Fan Du
<fan.du@windriver.com>
Thu, 1 Aug 2013 10:08:36 +0000
(18:08 +0800)
committer
Steffen Klassert
<steffen.klassert@secunet.com>
Tue, 6 Aug 2013 04:59:18 +0000
(06:59 +0200)
Both policy timer and hold_timer need to be deleted when destroy policy
Signed-off-by: Fan Du <fan.du@windriver.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c
patch
|
blob
|
blame
|
history
diff --git
a/net/xfrm/xfrm_policy.c
b/net/xfrm/xfrm_policy.c
index d8da6b8c6ba8b980c12564476c06f29d51f21ea0..f7078eb5b64e2bba4e98c5d3150d2b803816f870 100644
(file)
--- a/
net/xfrm/xfrm_policy.c
+++ b/
net/xfrm/xfrm_policy.c
@@
-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);