]> git.ipfire.org Git - thirdparty/kernel/stable.git/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:07:18 +0000 (17:07 +0000)
commit7a048a90ac3ecfd980398b882c5d21650293ae38
tree31ddefaf4797c4334503a3a8b30478972b5da432
parentb3fd9db79e30d5eb5f76ef1f5b7e4f444af574ea
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