]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/key/af_key.c
xfrm: Remove ancient sleeping when the SA is in acquire state
[mirror_ubuntu-artful-kernel.git] / net / key / af_key.c
index 9a039acf37e86642e1c8357fbfbbf6f494a694aa..5beabd8ba77239da435ec6c60d7a0727e2630f50 100644 (file)
@@ -1380,10 +1380,9 @@ static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb
                return 0;
 
        spin_lock_bh(&x->lock);
-       if (x->km.state == XFRM_STATE_ACQ) {
+       if (x->km.state == XFRM_STATE_ACQ)
                x->km.state = XFRM_STATE_ERROR;
-               wake_up(&net->xfrm.km_waitq);
-       }
+
        spin_unlock_bh(&x->lock);
        xfrm_state_put(x);
        return 0;