x86 ptrace: fix PTRACE_GETFPXREGS error
authorRoland McGrath <roland@redhat.com>
Mon, 30 Jun 2008 21:02:41 +0000 (14:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 1 Jul 2008 09:03:31 +0000 (11:03 +0200)
commit45fdc3a7624a4a48185a04ae0abab5f9793d8952
tree1f741448802f07a88479a2d4266cda9b875756da
parente1441b9a41c33aa9236008a7cfe49a8e723fb397
x86 ptrace: fix PTRACE_GETFPXREGS error

ptrace has always returned only -EIO for all failures to access
registers.  The user_regset calls are allowed to return a more
meaningful variety of errors.  The REGSET_XFP calls use -ENODEV
for !cpu_has_fxsr hardware.  Make ptrace return the traditional
-EIO instead of the error code from the user_regset call.

Signed-off-by: Roland McGrath <roland@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/i387.c
arch/x86/kernel/ptrace.c