Skip to content

Commit

Permalink
[XFRM] STATE: Fix flusing with hash mask.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahide NAKAMURA authored and David S. Miller committed Sep 22, 2006
1 parent ff9b5e0 commit a9917c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/xfrm/xfrm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a9917c0

Please sign in to comment.