summaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2016-08-24 13:08:40 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2016-08-24 13:13:08 +0200
commit4141b36ab16d7a66b4cf712f2d21eba61c5927e5 (patch)
treebefefbb3606afb437694898dd76c4f6337084345 /net/xfrm
parent9d0380df6217e8dd014118fa1c99dda9974f3613 (diff)
downloadlinux-4141b36ab16d7a66b4cf712f2d21eba61c5927e5.tar.bz2
xfrm: Fix xfrm_policy_lock imbalance
An earlier patch accidentally replaced a write_lock_bh with a spin_unlock_bh. Fix this by using spin_lock_bh instead. Fixes: 9d0380df6217 ("xfrm: policy: convert policy_lock to spinlock") Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index dd01fd2e55fa..f7ce6265961a 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -979,7 +979,7 @@ int xfrm_policy_flush(struct net *net, u8 type, bool task_valid)
xfrm_policy_kill(pol);
- spin_unlock_bh(&net->xfrm.xfrm_policy_lock);
+ spin_lock_bh(&net->xfrm.xfrm_policy_lock);
goto again1;
}