* [PATCH] crypto: kpp - clear CRYPTO_ALG_DEAD bit in prepare_alg
@ 2017-01-02 13:33 Salvatore Benedetto
2017-01-12 15:41 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Salvatore Benedetto @ 2017-01-02 13:33 UTC (permalink / raw)
To: herbert; +Cc: salvatore.benedetto, linux-crypto
Make sure CRYPTO_ALG_DEAD is not set when preparing for
alg registration. This fixes qat-dh registration that occurs
when reloading qat_c62x module.
Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com>
---
crypto/kpp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/crypto/kpp.c b/crypto/kpp.c
index d36ce05..d1adef8e 100644
--- a/crypto/kpp.c
+++ b/crypto/kpp.c
@@ -101,6 +101,7 @@ static void kpp_prepare_alg(struct kpp_alg *alg)
base->cra_type = &crypto_kpp_type;
base->cra_flags &= ~CRYPTO_ALG_TYPE_MASK;
+ base->cra_flags &= ~CRYPTO_ALG_DEAD;
base->cra_flags |= CRYPTO_ALG_TYPE_KPP;
}
--
2.4.11
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: kpp - clear CRYPTO_ALG_DEAD bit in prepare_alg
2017-01-02 13:33 [PATCH] crypto: kpp - clear CRYPTO_ALG_DEAD bit in prepare_alg Salvatore Benedetto
@ 2017-01-12 15:41 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2017-01-12 15:41 UTC (permalink / raw)
To: Salvatore Benedetto; +Cc: linux-crypto
On Mon, Jan 02, 2017 at 01:33:41PM +0000, Salvatore Benedetto wrote:
> Make sure CRYPTO_ALG_DEAD is not set when preparing for
> alg registration. This fixes qat-dh registration that occurs
> when reloading qat_c62x module.
>
> Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com>
> ---
> crypto/kpp.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/crypto/kpp.c b/crypto/kpp.c
> index d36ce05..d1adef8e 100644
> --- a/crypto/kpp.c
> +++ b/crypto/kpp.c
> @@ -101,6 +101,7 @@ static void kpp_prepare_alg(struct kpp_alg *alg)
>
> base->cra_type = &crypto_kpp_type;
> base->cra_flags &= ~CRYPTO_ALG_TYPE_MASK;
> + base->cra_flags &= ~CRYPTO_ALG_DEAD;
> base->cra_flags |= CRYPTO_ALG_TYPE_KPP;
> }
Same comment as in
https://patchwork.kernel.org/patch/9485115/
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-12 15:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-02 13:33 [PATCH] crypto: kpp - clear CRYPTO_ALG_DEAD bit in prepare_alg Salvatore Benedetto
2017-01-12 15:41 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).