mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: 63ee04c8b4 ("crypto: ccree - add skcipher support")
Cc: [email protected]
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
05bd1beec2
commit
b5be853181
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue