Commit 8abe04b0 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPSEC]: Use add_timer in find_acq.

parent 6ee9ceee
...@@ -98,7 +98,8 @@ __xfrm4_find_acq(u8 mode, u32 reqid, u8 proto, ...@@ -98,7 +98,8 @@ __xfrm4_find_acq(u8 mode, u32 reqid, u8 proto,
x0->props.family = AF_INET; x0->props.family = AF_INET;
x0->lft.hard_add_expires_seconds = XFRM_ACQ_EXPIRES; x0->lft.hard_add_expires_seconds = XFRM_ACQ_EXPIRES;
xfrm_state_hold(x0); xfrm_state_hold(x0);
mod_timer(&x0->timer, jiffies + XFRM_ACQ_EXPIRES*HZ); x0->timer.expires = jiffies + XFRM_ACQ_EXPIRES*HZ;
add_timer(&x0->timer);
xfrm_state_hold(x0); xfrm_state_hold(x0);
list_add_tail(&x0->bydst, xfrm4_state_afinfo.state_bydst+h); list_add_tail(&x0->bydst, xfrm4_state_afinfo.state_bydst+h);
wake_up(&km_waitq); wake_up(&km_waitq);
......
...@@ -108,7 +108,8 @@ __xfrm6_find_acq(u8 mode, u32 reqid, u8 proto, ...@@ -108,7 +108,8 @@ __xfrm6_find_acq(u8 mode, u32 reqid, u8 proto,
x0->props.reqid = reqid; x0->props.reqid = reqid;
x0->lft.hard_add_expires_seconds = XFRM_ACQ_EXPIRES; x0->lft.hard_add_expires_seconds = XFRM_ACQ_EXPIRES;
xfrm_state_hold(x0); xfrm_state_hold(x0);
mod_timer(&x0->timer, jiffies + XFRM_ACQ_EXPIRES*HZ); x0->timer.expires = jiffies + XFRM_ACQ_EXPIRES*HZ;
add_timer(&x0->timer);
xfrm_state_hold(x0); xfrm_state_hold(x0);
list_add_tail(&x0->bydst, xfrm6_state_afinfo.state_bydst+h); list_add_tail(&x0->bydst, xfrm6_state_afinfo.state_bydst+h);
wake_up(&km_waitq); wake_up(&km_waitq);
......
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