diff options
Diffstat (limited to 'net/key')
-rw-r--r-- | net/key/af_key.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 9a039acf37e8..5beabd8ba772 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -1380,10 +1380,9 @@ static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb | |||
1380 | return 0; | 1380 | return 0; |
1381 | 1381 | ||
1382 | spin_lock_bh(&x->lock); | 1382 | spin_lock_bh(&x->lock); |
1383 | if (x->km.state == XFRM_STATE_ACQ) { | 1383 | if (x->km.state == XFRM_STATE_ACQ) |
1384 | x->km.state = XFRM_STATE_ERROR; | 1384 | x->km.state = XFRM_STATE_ERROR; |
1385 | wake_up(&net->xfrm.km_waitq); | 1385 | |
1386 | } | ||
1387 | spin_unlock_bh(&x->lock); | 1386 | spin_unlock_bh(&x->lock); |
1388 | xfrm_state_put(x); | 1387 | xfrm_state_put(x); |
1389 | return 0; | 1388 | return 0; |