diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-06-07 15:49:34 -0500 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2021-06-08 23:33:48 -0400 |
commit | 7d2201d46218df951004fc48897f89c6eb510b69 (patch) | |
tree | b8daa6941b0fff1dbec65d2ff816cb20b6b9a2f9 | |
parent | ima: Pass NULL instead of 0 to ima_get_action() in ima_file_mprotect() (diff) | |
download | linux-dev-7d2201d46218df951004fc48897f89c6eb510b69.tar.xz linux-dev-7d2201d46218df951004fc48897f89c6eb510b69.zip |
ima: Fix fall-through warning for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a
fall-through warning by explicitly adding a break statement instead
of just letting the code fall through to the next case.
Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
-rw-r--r-- | security/integrity/ima/ima_template_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_template_lib.c b/security/integrity/ima/ima_template_lib.c index 8e2a121af5e1..ca017cae73eb 100644 --- a/security/integrity/ima/ima_template_lib.c +++ b/security/integrity/ima/ima_template_lib.c @@ -119,6 +119,7 @@ static void ima_show_template_data_ascii(struct seq_file *m, default: break; } + break; default: break; } |