diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2006-01-03 10:58:53 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-03 10:58:53 -0500 |
| commit | a18ceba7b40e24a9da87249bd74f16ea5abd6894 (patch) | |
| tree | 5ce615d345e720ddabf95c46fb62287ee763ad4e /net/xfrm/xfrm_state.c | |
| parent | aaadff81195056c7c14e0d834b3318c624c0fd78 (diff) | |
| parent | 88026842b0a760145aa71d69e74fbc9ec118ca44 (diff) | |
Merge branch 'master'
Diffstat (limited to 'net/xfrm/xfrm_state.c')
| -rw-r--r-- | net/xfrm/xfrm_state.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 7cf48aa6c95b..479effc97666 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
| @@ -431,6 +431,8 @@ void xfrm_state_insert(struct xfrm_state *x) | |||
| 431 | spin_lock_bh(&xfrm_state_lock); | 431 | spin_lock_bh(&xfrm_state_lock); |
| 432 | __xfrm_state_insert(x); | 432 | __xfrm_state_insert(x); |
| 433 | spin_unlock_bh(&xfrm_state_lock); | 433 | spin_unlock_bh(&xfrm_state_lock); |
| 434 | |||
| 435 | xfrm_flush_all_bundles(); | ||
| 434 | } | 436 | } |
| 435 | EXPORT_SYMBOL(xfrm_state_insert); | 437 | EXPORT_SYMBOL(xfrm_state_insert); |
| 436 | 438 | ||
| @@ -478,6 +480,9 @@ out: | |||
| 478 | spin_unlock_bh(&xfrm_state_lock); | 480 | spin_unlock_bh(&xfrm_state_lock); |
| 479 | xfrm_state_put_afinfo(afinfo); | 481 | xfrm_state_put_afinfo(afinfo); |
| 480 | 482 | ||
| 483 | if (!err) | ||
| 484 | xfrm_flush_all_bundles(); | ||
| 485 | |||
| 481 | if (x1) { | 486 | if (x1) { |
| 482 | xfrm_state_delete(x1); | 487 | xfrm_state_delete(x1); |
| 483 | xfrm_state_put(x1); | 488 | xfrm_state_put(x1); |
