]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm/kernel/ptrace.c
ARM: fix PTRACE_SETVFPREGS on SMP systems
[karo-tx-linux.git] / arch / arm / kernel / ptrace.c
index ef9119f7462ea11550fc0e6edaa756d9edc39905..4d9375814b538e096b57f76d947916cb3ce92b7a 100644 (file)
@@ -733,8 +733,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;
 }