]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/fork.c
Revert "x86/mm: Only set IBPB when the new thread cannot ptrace current thread"
[mirror_ubuntu-artful-kernel.git] / kernel / fork.c
index 8efc6b4466e3bfbb76b13a2206d7cba69cde1b53..1d907772b9d255c1b4a32dec2eb1262678f36ee7 100644 (file)
@@ -712,8 +712,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,
                        goto out;
        }
        /* a new mm has just been created */
-       arch_dup_mmap(oldmm, mm);
-       retval = 0;
+       retval = arch_dup_mmap(oldmm, mm);
 out:
        up_write(&mm->mmap_sem);
        flush_tlb_mm(oldmm);