Commit 646b8af1 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPSEC]: Use add_timer() in xfrm_state_find.

parent 58379026
......@@ -345,7 +345,8 @@ xfrm_state_find(xfrm_address_t *daddr, xfrm_address_t *saddr,
}
x->lft.hard_add_expires_seconds = XFRM_ACQ_EXPIRES;
xfrm_state_hold(x);
mod_timer(&x->timer, XFRM_ACQ_EXPIRES*HZ);
x->timer.expires = jiffies + XFRM_ACQ_EXPIRES*HZ;
add_timer(&x->timer);
} else {
x->km.state = XFRM_STATE_DEAD;
xfrm_state_put(x);
......
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