]> git.hungrycats.org Git - linux/commit
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:15:12 +0000 (17:15 +0000)
commitb564c10d4e9563506d23ce64730f0751116c5fc8
tree9b30cc589b9a6b5e670aa5e8ccbeef3e1f5ab038
parent695a358a390530325b1a350126a063d4c4ba3c23
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