aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMasahide NAKAMURA <nakam@linux-ipv6.org>2006-08-31 18:14:32 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:18:45 -0400
commita9917c06652165fe4eeb9ab7a5d1e0674e90e508 (patch)
treed73dacb6b29848b143bd760fcacec5831f5a8ece /net
parentff9b5e0f08cb650d113eef0c654f931c0a7ae730 (diff)
[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 <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/xfrm/xfrm_state.c2
1 files changed, 1 insertions, 1 deletions
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)
384 int i; 384 int i;
385 385
386 spin_lock_bh(&xfrm_state_lock); 386 spin_lock_bh(&xfrm_state_lock);
387 for (i = 0; i < xfrm_state_hmask; i++) { 387 for (i = 0; i <= xfrm_state_hmask; i++) {
388 struct hlist_node *entry; 388 struct hlist_node *entry;
389 struct xfrm_state *x; 389 struct xfrm_state *x;
390restart: 390restart: