projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/fpu: Limit xstate copy size in xstateregs_set()
[linux-2.6-microblaze.git]
/
arch
/
x86
/
kernel
/
fpu
/
regset.c
diff --git
a/arch/x86/kernel/fpu/regset.c
b/arch/x86/kernel/fpu/regset.c
index
c413756
..
6bb8744
100644
(file)
--- a/
arch/x86/kernel/fpu/regset.c
+++ b/
arch/x86/kernel/fpu/regset.c
@@
-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;