From: Gustavo A. R. Silva Date: Mon, 11 Feb 2019 18:31:31 +0000 (-0600) Subject: crypto: ccree - fix missing break in switch statement X-Git-Tag: v5.4-rc1~1405^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5be853181a8d4a6e20f2073ccd273d6280cad88;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ccree/cc_cipher.c b/drivers/crypto/ccree/cc_cipher.c index 5e3361a..d9c1707 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;