aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r--kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 13b4554d8fbb..42ad8ae729a0 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -537,7 +537,7 @@ static int ptrace_regset(struct task_struct *task, int req, unsigned int type,
537 int regset_no; 537 int regset_no;
538 538
539 if (!regset || (kiov->iov_len % regset->size) != 0) 539 if (!regset || (kiov->iov_len % regset->size) != 0)
540 return -EIO; 540 return -EINVAL;
541 541
542 regset_no = regset - view->regsets; 542 regset_no = regset - view->regsets;
543 kiov->iov_len = min(kiov->iov_len, 543 kiov->iov_len = min(kiov->iov_len,