Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

security: keys: 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: David Howells <dhowells@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Ben Boeckel <mathstuf@gmail.com>

authored by

Gustavo A. R. Silva and committed by
David Howells
634c21bb 19c329f6

+1
+1
security/keys/process_keys.c
··· 783 783 if (need_perm != KEY_AUTHTOKEN_OVERRIDE && 784 784 need_perm != KEY_DEFER_PERM_CHECK) 785 785 goto invalid_key; 786 + break; 786 787 case 0: 787 788 break; 788 789 }