seccomp: Add missing return in non-void function
authorPaul Cercueil <paul@crapouillou.net>
Mon, 11 Jan 2021 17:28:39 +0000 (17:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:32 +0000 (11:38 +0100)
commitb506450ce3d904386c1bd7e33c74f9343548d2d8
treeb8cfab439c1b07d331f8a0158071484c78b01e7b
parent56a7c53c494c264cd2ab45e4c073b7d6666095ca
seccomp: Add missing return in non-void function

commit 04b38d012556199ba4c31195940160e0c44c64f0 upstream.

We don't actually care about the value, since the kernel will panic
before that; but a value should nonetheless be returned, otherwise the
compiler will complain.

Fixes: 8112c4f140fa ("seccomp: remove 2-phase API")
Cc: stable@vger.kernel.org # 4.7+
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210111172839.640914-1-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/seccomp.c