diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 12:32:26 -0600 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-11-23 18:21:13 -0500 |
commit | b2d99bcb27225fe420a8923b21861aef2bb43d9b (patch) | |
tree | 3c41e38e4c86f0e043abf93ef1936c9eea75c3c8 /security | |
parent | b159e86b5a2ab826b3a292756072f4cc523675ab (diff) | |
download | linux-b2d99bcb27225fe420a8923b21861aef2bb43d9b.tar.bz2 |
selinux: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of 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>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index ca5c5623b46d..943c2693cec7 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -4036,6 +4036,7 @@ static int selinux_kernel_load_data(enum kernel_load_data_id id, bool contents) switch (id) { case LOADING_MODULE: rc = selinux_kernel_module_from_file(NULL); + break; default: break; } |