]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
efi: Add missing static initializer for efi_mm::cpus_allowed_lock
authorArd Biesheuvel <ardb@kernel.org>
Wed, 15 Oct 2025 20:56:36 +0000 (22:56 +0200)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 11 Nov 2025 18:59:22 +0000 (18:59 +0000)
Initialize the cpus_allowed_lock struct member of efi_mm.

Cc: stable@vger.kernel.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/firmware/efi/efi.c

index 1ce428e2ac8a0ea86f89df77d51df191775b6d5d..fc407d891348f0e0fde3937fd933784746fdcda1 100644 (file)
@@ -74,6 +74,9 @@ struct mm_struct efi_mm = {
        .page_table_lock        = __SPIN_LOCK_UNLOCKED(efi_mm.page_table_lock),
        .mmlist                 = LIST_HEAD_INIT(efi_mm.mmlist),
        .cpu_bitmap             = { [BITS_TO_LONGS(NR_CPUS)] = 0},
+#ifdef CONFIG_SCHED_MM_CID
+       .cpus_allowed_lock      = __RAW_SPIN_LOCK_UNLOCKED(efi_mm.cpus_allowed_lock),
+#endif
 };
 
 struct workqueue_struct *efi_rts_wq;