diff options
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index 0dab1cd79ce4..12213477cd3a 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -732,12 +732,12 @@ restart: | |||
732 | } | 732 | } |
733 | } | 733 | } |
734 | } | 734 | } |
735 | out: | ||
736 | spin_unlock_bh(&net->xfrm.xfrm_state_lock); | ||
735 | if (cnt) { | 737 | if (cnt) { |
736 | err = 0; | 738 | err = 0; |
737 | xfrm_policy_cache_flush(); | 739 | xfrm_policy_cache_flush(); |
738 | } | 740 | } |
739 | out: | ||
740 | spin_unlock_bh(&net->xfrm.xfrm_state_lock); | ||
741 | return err; | 741 | return err; |
742 | } | 742 | } |
743 | EXPORT_SYMBOL(xfrm_state_flush); | 743 | EXPORT_SYMBOL(xfrm_state_flush); |