diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-09-09 00:29:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-01 08:26:02 +0200 |
commit | f3160a1d71f7eeb1b177f1bf48b87d7b97df1d48 (patch) | |
tree | 5420cecf8304119046164aef13425541d47209c2 /drivers/crypto | |
parent | c1a7fe48664745cac7929c630b24c56776c32f91 (diff) | |
download | linux-stable-f3160a1d71f7eeb1b177f1bf48b87d7b97df1d48.tar.gz linux-stable-f3160a1d71f7eeb1b177f1bf48b87d7b97df1d48.tar.bz2 linux-stable-f3160a1d71f7eeb1b177f1bf48b87d7b97df1d48.zip |
crypto: talitos - fix missing break in switch statement
commit 5fc194ea6d34dfad9833d3043ce41d6c52aff39a upstream.
Add missing break statement in order to prevent the code from falling
through to case CRYPTO_ALG_TYPE_AHASH.
Fixes: aeb4c132f33d ("crypto: talitos - Convert to new AEAD interface")
Cc: stable@vger.kernel.org
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/talitos.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 064315edd289..634ae487c372 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -3124,6 +3124,7 @@ static int talitos_remove(struct platform_device *ofdev) break; case CRYPTO_ALG_TYPE_AEAD: crypto_unregister_aead(&t_alg->algt.alg.aead); + break; case CRYPTO_ALG_TYPE_AHASH: crypto_unregister_ahash(&t_alg->algt.alg.hash); break; |