lsm: fix default return value for vm_enough_memory
authorOndrej Mosnacek <omosnace@redhat.com>
Tue, 31 Oct 2023 12:32:06 +0000 (13:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:20:10 +0000 (17:20 +0000)
commit64d84030ff5ebd48d87c4ea136894d42a40347d8
treef66227c2af2426de7e1c0a5121bdece4b3c41e95
parentff4d0309780c9c40121206b446605ba18c31e675
lsm: fix default return value for vm_enough_memory

commit 866d648059d5faf53f1cd960b43fe8365ad93ea7 upstream.

1 is the return value that implements a "no-op" hook, not 0.

Cc: stable@vger.kernel.org
Fixes: 98e828a0650f ("security: Refactor declaration of LSM hooks")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/lsm_hook_defs.h