macsec: fix SA initialization
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 14 Jun 2016 13:25:16 +0000 (15:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2016 21:47:46 +0000 (14:47 -0700)
The ASYNC flag prevents initialization on some physical machines.

Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macsec.c

index 189ea3e8e8a040e8f28583b3db005677c1c573f6..0e7eff7f1cd27b630c07a02f75c08a02f45ec6dd 100644 (file)
@@ -1262,7 +1262,7 @@ static struct crypto_aead *macsec_alloc_tfm(char *key, int key_len, int icv_len)
        struct crypto_aead *tfm;
        int ret;
 
-       tfm = crypto_alloc_aead("gcm(aes)", 0, CRYPTO_ALG_ASYNC);
+       tfm = crypto_alloc_aead("gcm(aes)", 0, 0);
        if (!tfm || IS_ERR(tfm))
                return NULL;