]> git.baikalelectronics.ru Git - kernel.git/commit
ima: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:25:46 +0000 (12:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:01 +0000 (11:41 +0100)
commit737dc3a0707df9f50c94ef61988f84f9f76a7941
treeb82eaa518a7ad7e6531398533dcaaf234ee4ed7d
parent863000664b2ca841122b17e0e6ecfc910a9b7475
ima: Fix fall-through warnings for Clang

[ Upstream commit dd36925f7987c0854d067eca4d4ee6d3e40cfd45 ]

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements 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>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Stable-dep-of: c7423dbdbc9e ("ima: Handle -ESTALE returned by ima_filter_rule_match()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/integrity/ima/ima_main.c
security/integrity/ima/ima_policy.c