Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ff356a63
Commit
ff356a63
authored
Sep 25, 2003
by
Randy Dunlap
Committed by
Linus Torvalds
Sep 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] janitor: h8300: put_user for error handling
From: Domen Puncer <domen@coderock.org> verify_area isn't needed.
parent
3c7e45bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
arch/h8300/kernel/ptrace.c
arch/h8300/kernel/ptrace.c
+2
-9
No files found.
arch/h8300/kernel/ptrace.c
View file @
ff356a63
...
...
@@ -285,9 +285,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret
=
read_long
(
child
,
addr
,
&
tmp
);
if
(
ret
<
0
)
break
;
ret
=
verify_area
(
VERIFY_WRITE
,
(
void
*
)
data
,
sizeof
(
long
));
if
(
!
ret
)
put_user
(
tmp
,
(
unsigned
long
*
)
data
);
ret
=
put_user
(
tmp
,
(
unsigned
long
*
)
data
);
break
;
}
...
...
@@ -298,10 +296,6 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
if
((
addr
&
3
)
||
addr
<
0
||
addr
>=
sizeof
(
struct
user
))
ret
=
-
EIO
;
ret
=
verify_area
(
VERIFY_WRITE
,
(
void
*
)
data
,
sizeof
(
long
));
if
(
ret
)
break
;
tmp
=
0
;
/* Default return condition */
addr
=
addr
>>
2
;
/* temporary hack. */
if
(
addr
<
10
)
...
...
@@ -310,8 +304,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
ret
=
-
EIO
;
break
;
}
put_user
(
tmp
,(
unsigned
long
*
)
data
);
ret
=
0
;
ret
=
put_user
(
tmp
,(
unsigned
long
*
)
data
);
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