diff options
-rw-r--r-- | arch/um/sys-i386/ptrace.c | 14 | ||||
-rw-r--r-- | arch/um/sys-x86_64/ptrace.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/arch/um/sys-i386/ptrace.c b/arch/um/sys-i386/ptrace.c index d23b2d3ea384..49fd25a5f206 100644 --- a/arch/um/sys-i386/ptrace.c +++ b/arch/um/sys-i386/ptrace.c | |||
@@ -206,5 +206,17 @@ int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) | |||
206 | long subarch_ptrace(struct task_struct *child, long request, | 206 | long subarch_ptrace(struct task_struct *child, long request, |
207 | unsigned long addr, unsigned long data) | 207 | unsigned long addr, unsigned long data) |
208 | { | 208 | { |
209 | return -EIO; | 209 | int ret = -EIO; |
210 | void __user *datap = (void __user *) data; | ||
211 | |||
212 | switch (request) { | ||
213 | case PTRACE_GETFPXREGS: /* Get the child FPU state. */ | ||
214 | ret = get_fpxregs(datap, child); | ||
215 | break; | ||
216 | case PTRACE_SETFPXREGS: /* Set the child FPU state. */ | ||
217 | ret = set_fpxregs(datap, child); | ||
218 | break; | ||
219 | } | ||
220 | |||
221 | return ret; | ||
210 | } | 222 | } |
diff --git a/arch/um/sys-x86_64/ptrace.c b/arch/um/sys-x86_64/ptrace.c index f43613643cdb..7ed49ac78f88 100644 --- a/arch/um/sys-x86_64/ptrace.c +++ b/arch/um/sys-x86_64/ptrace.c | |||
@@ -178,17 +178,5 @@ int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) | |||
178 | long subarch_ptrace(struct task_struct *child, long request, | 178 | long subarch_ptrace(struct task_struct *child, long request, |
179 | unsigned long addr, unsigned long data) | 179 | unsigned long addr, unsigned long data) |
180 | { | 180 | { |
181 | int ret = -EIO; | 181 | return -EIO; |
182 | void __user *datap = (void __user *) data; | ||
183 | |||
184 | switch (request) { | ||
185 | case PTRACE_GETFPXREGS: /* Get the child FPU state. */ | ||
186 | ret = get_fpregs(datap, child); | ||
187 | break; | ||
188 | case PTRACE_SETFPXREGS: /* Set the child FPU state. */ | ||
189 | ret = set_fpregs(datap, child); | ||
190 | break; | ||
191 | } | ||
192 | |||
193 | return ret; | ||
194 | } | 182 | } |