1 From b5be853181a8d4a6e20f2073ccd273d6280cad88 Mon Sep 17 00:00:00 2001
2 From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
3 Date: Mon, 11 Feb 2019 12:31:31 -0600
4 Subject: crypto: ccree - fix missing break in switch statement
6 From: Gustavo A. R. Silva <gustavo@embeddedor.com>
8 commit b5be853181a8d4a6e20f2073ccd273d6280cad88 upstream.
10 Add missing break statement in order to prevent the code from falling
11 through to case S_DIN_to_DES.
13 This bug was found thanks to the ongoing efforts to enable
14 -Wimplicit-fallthrough.
16 Fixes: 63ee04c8b491 ("crypto: ccree - add skcipher support")
17 Cc: stable@vger.kernel.org
18 Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
19 Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 drivers/crypto/ccree/cc_cipher.c | 1 +
24 1 file changed, 1 insertion(+)
26 --- a/drivers/crypto/ccree/cc_cipher.c
27 +++ b/drivers/crypto/ccree/cc_cipher.c
28 @@ -79,6 +79,7 @@ static int validate_keys_sizes(struct cc
34 if (size == DES3_EDE_KEY_SIZE || size == DES_KEY_SIZE)