ptrace: fix PTRACE_GETREGSET, PTRACE_SETREGSET bug

refs #608
This commit is contained in:
Yoichi Umezawa
2015-12-28 19:45:50 +09:00
parent edc275ce4f
commit f9bd83c726

View File

@ -389,7 +389,6 @@ long ptrace_read_regset(struct thread *thread, long type, struct iovec *iov)
switch (type) {
case NT_X86_XSTATE:
save_fp_regs(thread);
if (thread->fp_regs == NULL) {
return -ENOMEM;
}
@ -411,7 +410,6 @@ long ptrace_write_regset(struct thread *thread, long type, struct iovec *iov)
switch (type) {
case NT_X86_XSTATE:
save_fp_regs(thread);
if (thread->fp_regs == NULL) {
return -ENOMEM;
}