]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
Patch Upstream: x86 ptrace: fix PTRACE_GETFPXREGS error
authorRoland McGrath <roland@redhat.com>
Mon, 14 Jul 2008 21:05:12 +0000 (21:05 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 19:43:00 +0000 (12:43 -0700)
commita6f625f6615eb006810ec6ab8c836da5123c2002
treebea7af7ef65e314447ce71e84fecd216e4272e62
parent8c5a4a12d8d5bf025a09a576a0b5c62e0167423c
Patch Upstream: x86 ptrace: fix PTRACE_GETFPXREGS error

commit 45fdc3a7624a4a48185a04ae0abab5f9793d8952 upstream

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>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/i387.c
arch/x86/kernel/ptrace.c