From: Sabrina Dubroca Date: Tue, 14 Jun 2016 13:25:16 +0000 (+0200) Subject: macsec: fix SA initialization X-Git-Tag: v4.1.12-92~24^2~66 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=12848e332fc9702716dfa2e86763b1418894c4d0;p=users%2Fjedix%2Flinux-maple.git macsec: fix SA initialization The ASYNC flag prevents initialization on some physical machines. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver") Signed-off-by: Sabrina Dubroca Signed-off-by: David S. Miller (cherry picked from commit 6052f7fbce857e327218a9d8a040e210ea7cc718) Orabug: 24614549 Signed-off-by: Ethan Zhao Signed-off-by: Dhaval Giani --- diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 7d8f282a9a8f0..a10f0ab97bfd6 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -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;