Skip to content

Commit b2d99bc

Browse files
GustavoARSilvapcmoore
authored andcommitted
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: KSPP/linux#115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent b159e86 commit b2d99bc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎security/selinux/hooks.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4036,6 +4036,7 @@ static int selinux_kernel_load_data(enum kernel_load_data_id id, bool contents)
40364036
switch (id) {
40374037
case LOADING_MODULE:
40384038
rc = selinux_kernel_module_from_file(NULL);
4039+
break;
40394040
default:
40404041
break;
40414042
}

0 commit comments

Comments
 (0)