OSDN Git Service

Merge android-4.4.194 (a749771) into msm-4.4
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / arch / arm / mm / init.c
index d05984a..a375974 100644 (file)
@@ -790,7 +790,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);
        }
        read_unlock(&tasklist_lock);
        set_section_perms(perms, n, true, current->active_mm);