diff options
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 3459692092ec..05db2362a231 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -1370,9 +1370,6 @@ int xfrm_state_check_expire(struct xfrm_state *x) | |||
1370 | if (!x->curlft.use_time) | 1370 | if (!x->curlft.use_time) |
1371 | x->curlft.use_time = get_seconds(); | 1371 | x->curlft.use_time = get_seconds(); |
1372 | 1372 | ||
1373 | if (x->km.state != XFRM_STATE_VALID) | ||
1374 | return -EINVAL; | ||
1375 | |||
1376 | if (x->curlft.bytes >= x->lft.hard_byte_limit || | 1373 | if (x->curlft.bytes >= x->lft.hard_byte_limit || |
1377 | x->curlft.packets >= x->lft.hard_packet_limit) { | 1374 | x->curlft.packets >= x->lft.hard_packet_limit) { |
1378 | x->km.state = XFRM_STATE_EXPIRED; | 1375 | x->km.state = XFRM_STATE_EXPIRED; |