diff --git a/Makefile b/Makefile index ab1cb6f2e6ee23..5c06e9d3dfd376 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 165 +SUBLEVEL = 166 EXTRAVERSION = NAME = Curry Ramen diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 38f48875df91a1..18a034613d94d6 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -377,15 +377,9 @@ int __init ima_free_kexec_buffer(void) int __init ima_get_kexec_buffer(void **addr, size_t *size) { - int ret; - if (!ima_kexec_buffer_size) return -ENOENT; - ret = ima_validate_range(ima_kexec_buffer_phys, ima_kexec_buffer_size); - if (ret) - return ret; - *addr = __va(ima_kexec_buffer_phys); *size = ima_kexec_buffer_size;