aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-02-11 12:31:31 -0600
committerHerbert Xu <herbert@gondor.apana.org.au>2019-02-22 12:47:26 +0800
commitb5be853181a8d4a6e20f2073ccd273d6280cad88 (patch)
tree3ec4abeedd4e8beac74223e54eaca73451ec21f3 /drivers/crypto
parentcrypto: caam/qi2 - relax busy polling while enqueuing FDs (diff)
downloadlinux-dev-b5be853181a8d4a6e20f2073ccd273d6280cad88.tar.xz
linux-dev-b5be853181a8d4a6e20f2073ccd273d6280cad88.zip
crypto: ccree - fix missing break in switch statement
Add missing break statement in order to prevent the code from falling through to case S_DIN_to_DES. This bug was found thanks to the ongoing efforts to enable -Wimplicit-fallthrough. Fixes: 63ee04c8b491 ("crypto: ccree - add skcipher support") Cc: stable@vger.kernel.org Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/ccree/cc_cipher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/ccree/cc_cipher.c b/drivers/crypto/ccree/cc_cipher.c
index 5e3361a363b5..d9c17078517b 100644
--- a/drivers/crypto/ccree/cc_cipher.c
+++ b/drivers/crypto/ccree/cc_cipher.c
@@ -80,6 +80,7 @@ static int validate_keys_sizes(struct cc_cipher_ctx *ctx_p, u32 size)
default:
break;
}
+ break;
case S_DIN_to_DES:
if (size == DES3_EDE_KEY_SIZE || size == DES_KEY_SIZE)
return 0;