ARM: fix PTRACE_SETVFPREGS on SMP systems
[pandora-kernel.git] / arch / arm / kernel / ptrace.c
index 90fa8b3..8b17fb4 100644 (file)
@@ -726,8 +726,8 @@ static int vfp_set(struct task_struct *target,
        if (ret)
                return ret;
 
-       vfp_flush_hwstate(thread);
        thread->vfpstate.hard = new_vfp;
+       vfp_flush_hwstate(thread);
 
        return 0;
 }