Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
c3508858
Commit
c3508858
authored
Jan 28, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fallout from ptrace consolidation patch: cris/arch-v10
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
7be7cbf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/cris/arch-v10/kernel/ptrace.c
arch/cris/arch-v10/kernel/ptrace.c
+4
-4
No files found.
arch/cris/arch-v10/kernel/ptrace.c
View file @
c3508858
...
@@ -202,18 +202,18 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
...
@@ -202,18 +202,18 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
int
i
;
int
i
;
unsigned
long
tmp
;
unsigned
long
tmp
;
ret
=
0
;
for
(
i
=
0
;
i
<=
PT_MAX
;
i
++
)
{
for
(
i
=
0
;
i
<=
PT_MAX
;
i
++
)
{
tmp
=
get_reg
(
child
,
i
);
tmp
=
get_reg
(
child
,
i
);
if
(
put_user
(
tmp
,
datap
))
{
if
(
put_user
(
tmp
,
datap
))
{
ret
=
-
EFAULT
;
ret
=
-
EFAULT
;
goto
out_ts
k
;
brea
k
;
}
}
data
+=
sizeof
(
long
);
data
+=
sizeof
(
long
);
}
}
ret
=
0
;
break
;
break
;
}
}
...
@@ -222,10 +222,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
...
@@ -222,10 +222,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
int
i
;
int
i
;
unsigned
long
tmp
;
unsigned
long
tmp
;
ret
=
0
;
for
(
i
=
0
;
i
<=
PT_MAX
;
i
++
)
{
for
(
i
=
0
;
i
<=
PT_MAX
;
i
++
)
{
if
(
get_user
(
tmp
,
datap
))
{
if
(
get_user
(
tmp
,
datap
))
{
ret
=
-
EFAULT
;
ret
=
-
EFAULT
;
goto
out_ts
k
;
brea
k
;
}
}
if
(
i
==
PT_DCCR
)
{
if
(
i
==
PT_DCCR
)
{
...
@@ -237,7 +238,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
...
@@ -237,7 +238,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
data
+=
sizeof
(
long
);
data
+=
sizeof
(
long
);
}
}
ret
=
0
;
break
;
break
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment