From: Masahide NAKAMURA Date: Thu, 31 Aug 2006 22:14:32 +0000 (-0700) Subject: [XFRM] STATE: Fix flusing with hash mask. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a9917c06652165fe4eeb9ab7a5d1e0674e90e508;p=linux-beck.git [XFRM] STATE: Fix flusing with hash mask. This is a minor fix about transformation state flushing for net-2.6.19. Please apply it. Signed-off-by: David S. Miller --- diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 4341795eb244..9f63edd39346 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -384,7 +384,7 @@ void xfrm_state_flush(u8 proto) int i; spin_lock_bh(&xfrm_state_lock); - for (i = 0; i < xfrm_state_hmask; i++) { + for (i = 0; i <= xfrm_state_hmask; i++) { struct hlist_node *entry; struct xfrm_state *x; restart: