xfrm: Add refcount handling to queued policies
commite7d8f6cb2f8735693396872f4608bbe305e8baee
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 8 Oct 2013 08:49:45 +0000 (8 10:49 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 8 Oct 2013 08:49:45 +0000 (8 10:49 +0200)
treeec1e047b8f4a584cea14b3b9dc876b7caf3c5851
parentcd808fc9a6c7cd3a4311d9d2cffc4adbeaef5f6c
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 a0073fe18 ("xfrm: Add a state
resolution packet queue")

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