Skip to content

Commit bacecf3

Browse files
ardbiesheuvelgregkh
authored andcommitted
efi: Add missing static initializer for efi_mm::cpus_allowed_lock
commit 40374d3 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 265fad7 commit bacecf3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • drivers/firmware/efi

drivers/firmware/efi/efi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ struct mm_struct efi_mm = {
7474
.page_table_lock = __SPIN_LOCK_UNLOCKED(efi_mm.page_table_lock),
7575
.mmlist = LIST_HEAD_INIT(efi_mm.mmlist),
7676
.cpu_bitmap = { [BITS_TO_LONGS(NR_CPUS)] = 0},
77+
#ifdef CONFIG_SCHED_MM_CID
78+
.cpus_allowed_lock = __RAW_SPIN_LOCK_UNLOCKED(efi_mm.cpus_allowed_lock),
79+
#endif
7780
};
7881

7982
struct workqueue_struct *efi_rts_wq;

0 commit comments

Comments
 (0)