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
Kirill Smelkov
linux
Commits
62e791c1
Commit
62e791c1
authored
Oct 22, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't pass regs to copy_process()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
afa86fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
kernel/fork.c
kernel/fork.c
+2
-4
No files found.
kernel/fork.c
View file @
62e791c1
...
...
@@ -1127,7 +1127,6 @@ static void posix_cpu_timers_init(struct task_struct *tsk)
*/
static
struct
task_struct
*
copy_process
(
unsigned
long
clone_flags
,
unsigned
long
stack_start
,
struct
pt_regs
*
regs
,
unsigned
long
stack_size
,
int
__user
*
child_tidptr
,
struct
pid
*
pid
,
...
...
@@ -1536,8 +1535,7 @@ struct task_struct * __cpuinit fork_idle(int cpu)
struct
task_struct
*
task
;
struct
pt_regs
regs
;
task
=
copy_process
(
CLONE_VM
,
0
,
idle_regs
(
&
regs
),
0
,
NULL
,
&
init_struct_pid
,
0
);
task
=
copy_process
(
CLONE_VM
,
0
,
0
,
NULL
,
&
init_struct_pid
,
0
);
if
(
!
IS_ERR
(
task
))
{
init_idle_pids
(
task
->
pids
);
init_idle
(
task
,
cpu
);
...
...
@@ -1596,7 +1594,7 @@ long do_fork(unsigned long clone_flags,
trace
=
0
;
}
p
=
copy_process
(
clone_flags
,
stack_start
,
regs
,
stack_size
,
p
=
copy_process
(
clone_flags
,
stack_start
,
stack_size
,
child_tidptr
,
NULL
,
trace
);
/*
* Do this prior waking up the new thread - the thread pointer
...
...
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