x86/fpu: Limit xstate copy size in xstateregs_set()
[linux-2.6-microblaze.git] / arch / x86 / kernel / fpu / regset.c
index c413756..6bb8744 100644 (file)
@@ -117,7 +117,7 @@ int xstateregs_set(struct task_struct *target, const struct user_regset *regset,
        /*
         * A whole standard-format XSAVE buffer is needed:
         */
-       if ((pos != 0) || (count < fpu_user_xstate_size))
+       if (pos != 0 || count != fpu_user_xstate_size)
                return -EFAULT;
 
        xsave = &fpu->state.xsave;