diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 0cc8e04295a40dc1d16f308396afdfb7540aa48c..66b1568b95e05a5cd13a3a75ef2b6d5c6a4e8fd8 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -713,7 +713,8 @@ static void update_sections_early(struct section_perm perms[], int n) if (t->flags & PF_KTHREAD) continue; for_each_thread(t, s) - set_section_perms(perms, n, true, s->mm); + if (s->mm) + set_section_perms(perms, n, true, s->mm); } set_section_perms(perms, n, true, current->active_mm); set_section_perms(perms, n, true, &init_mm);