]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/its: Fix an ifdef typo in its_alloc()
authorLukas Bulwahn <lukas.bulwahn@redhat.com>
Mon, 16 Jun 2025 10:04:32 +0000 (12:04 +0200)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 17 Jun 2025 23:10:57 +0000 (16:10 -0700)
Commit a82b26451de1 ("x86/its: explicitly manage permissions for ITS
pages") reworks its_alloc() and introduces a typo in an ifdef
conditional, referring to CONFIG_MODULE instead of CONFIG_MODULES.

Fix this typo in its_alloc().

Fixes: a82b26451de1 ("x86/its: explicitly manage permissions for ITS pages")
Signed-off-by: Lukas Bulwahn <lukas.bulwahn@redhat.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/all/20250616100432.22941-1-lukas.bulwahn%40redhat.com
arch/x86/kernel/alternative.c

index 6455f7f751b31091f3f209b98a33875fb8d9d404..9ae80fa904a23b2c9996e46aea27da00b9311f9b 100644 (file)
@@ -228,7 +228,7 @@ static void *its_alloc(void)
        struct its_array *pages = &its_pages;
        void *page;
 
-#ifdef CONFIG_MODULE
+#ifdef CONFIG_MODULES
        if (its_mod)
                pages = &its_mod->arch.its_pages;
 #endif