diff options
-rw-r--r-- | net/xfrm/xfrm_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 8df547d7d61c..cd1d5e11ee74 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -179,6 +179,8 @@ out: | |||
179 | xfrm_state_put(x); | 179 | xfrm_state_put(x); |
180 | } | 180 | } |
181 | 181 | ||
182 | static void xfrm_replay_timer_handler(unsigned long data); | ||
183 | |||
182 | struct xfrm_state *xfrm_state_alloc(void) | 184 | struct xfrm_state *xfrm_state_alloc(void) |
183 | { | 185 | { |
184 | struct xfrm_state *x; | 186 | struct xfrm_state *x; |
@@ -815,11 +817,9 @@ void xfrm_replay_notify(struct xfrm_state *x, int event) | |||
815 | c.data.aevent = event; | 817 | c.data.aevent = event; |
816 | km_state_notify(x, &c); | 818 | km_state_notify(x, &c); |
817 | 819 | ||
818 | resched: | ||
819 | if (x->replay_maxage && | 820 | if (x->replay_maxage && |
820 | !mod_timer(&x->rtimer, jiffies + x->replay_maxage)) | 821 | !mod_timer(&x->rtimer, jiffies + x->replay_maxage)) |
821 | xfrm_state_hold(x); | 822 | xfrm_state_hold(x); |
822 | |||
823 | } | 823 | } |
824 | 824 | ||
825 | static void xfrm_replay_timer_handler(unsigned long data) | 825 | static void xfrm_replay_timer_handler(unsigned long data) |