summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 12:32:26 -0600
committerPaul Moore <paul@paul-moore.com>2020-11-23 18:21:13 -0500
commitb2d99bcb27225fe420a8923b21861aef2bb43d9b (patch)
tree3c41e38e4c86f0e043abf93ef1936c9eea75c3c8 /security
parentb159e86b5a2ab826b3a292756072f4cc523675ab (diff)
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.c1
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;
}