]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/sparc/kernel/traps_32.c
mm: add new mmgrab() helper
[mirror_ubuntu-jammy-kernel.git] / arch / sparc / kernel / traps_32.c
index 4f21df7d4f13bd32935f870ec26fa6e03b0f8a01..ecddac5a4c9628e28eb16022bc32c1335732f965 100644 (file)
@@ -448,7 +448,7 @@ void trap_init(void)
                thread_info_offsets_are_bolixed_pete();
 
        /* Attach to the address space of init_task. */
-       atomic_inc(&init_mm.mm_count);
+       mmgrab(&init_mm);
        current->active_mm = &init_mm;
 
        /* NOTE: Other cpus have this done as they are started