projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b26c3
)
[PATCH] fix copy_process() error check
author
Akinobu Mita
<akinobu.mita@gmail.com>
Sat, 25 Nov 2006 19:09:34 +0000
(11:09 -0800)
committer
Linus Torvalds
<torvalds@woody.osdl.org>
Sat, 25 Nov 2006 21:28:34 +0000
(13:28 -0800)
The return value of copy_process() should be checked by IS_ERR().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/fork.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index 3da978eec791216dd796cd704aed67b263713fa1..8cdd3e72ba55f9ee52b098e67b1b7d4fcd04aa58 100644
(file)
--- a/
kernel/fork.c
+++ b/
kernel/fork.c
@@
-1315,9
+1315,8
@@
struct task_struct * __devinit fork_idle(int cpu)
struct pt_regs regs;
task = copy_process(CLONE_VM, 0, idle_regs(®s), 0, NULL, NULL, 0);
- if (!task)
- return ERR_PTR(-ENOMEM);
- init_idle(task, cpu);
+ if (!IS_ERR(task))
+ init_idle(task, cpu);
return task;
}