]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: x86/chacha - only unregister algorithms if registered
authorEric Biggers <ebiggers@google.com>
Mon, 18 Nov 2019 07:21:58 +0000 (23:21 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:39 +0000 (18:48 +0800)
commitb971707560db79ec47b5b9225c3e74417f93fc52
tree6cef27d00d7e9442dee0f7f18c275607c8f58412
parent277db4dcc2908a2366c5cd47f1a3669e7981fccf
crypto: x86/chacha - only unregister algorithms if registered

It's not valid to call crypto_unregister_skciphers() without a prior
call to crypto_register_skciphers().

Fixes: 5169243d9fc4 ("crypto: x86/chacha - expose SIMD ChaCha routine as library function")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/chacha_glue.c