diff options
author | Masahide NAKAMURA <nakam@linux-ipv6.org> | 2006-08-31 15:14:32 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 15:18:45 -0700 |
commit | a9917c06652165fe4eeb9ab7a5d1e0674e90e508 (patch) | |
tree | d73dacb6b29848b143bd760fcacec5831f5a8ece /net | |
parent | ff9b5e0f08cb650d113eef0c654f931c0a7ae730 (diff) | |
download | linux-3.10-a9917c06652165fe4eeb9ab7a5d1e0674e90e508.tar.gz linux-3.10-a9917c06652165fe4eeb9ab7a5d1e0674e90e508.tar.bz2 linux-3.10-a9917c06652165fe4eeb9ab7a5d1e0674e90e508.zip |
[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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 4341795eb24..9f63edd3934 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: |