]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Add refcount handling to queued policies
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 8 Oct 2013 08:49:45 +0000 (10:49 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 8 Oct 2013 08:49:45 +0000 (10:49 +0200)
commitd503fb115c512bf054c86fb763a99e46f4fe0c9f
treeec1e047b8f4a584cea14b3b9dc876b7caf3c5851
parent2e1c59df6e4395d2940ca6c4f624fe0d4a30fdb4
xfrm: Add refcount handling to queued policies

We need to ensure that policies can't go away as long as the hold timer
is armed, so take a refcont when we arm the timer and drop one if we
delete it.

Bug was introduced with git commit 2e30dbbfe ("xfrm: Add a state
resolution packet queue")

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c