Merge tag 'v4.0-rc2' into x86/asm, to refresh the tree
[cascardo/linux.git] / arch / x86 / kernel / process_64.c
index 67fcc43..854b598 100644 (file)
@@ -207,7 +207,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
         */
        if (clone_flags & CLONE_SETTLS) {
 #ifdef CONFIG_IA32_EMULATION
-               if (test_thread_flag(TIF_IA32))
+               if (is_ia32_task())
                        err = do_set_thread_area(p, -1,
                                (struct user_desc __user *)childregs->si, 0);
                else