mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 11:53:01 +00:00
[SPARC64]: check fork_idle() error
Check the return value of fork_idle() to catch error. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
27097ef9ff
commit
1177bf9704
|
@ -353,6 +353,8 @@ static int __devinit smp_boot_one_cpu(unsigned int cpu)
|
||||||
int timeout, ret;
|
int timeout, ret;
|
||||||
|
|
||||||
p = fork_idle(cpu);
|
p = fork_idle(cpu);
|
||||||
|
if (IS_ERR(p))
|
||||||
|
return PTR_ERR(p);
|
||||||
callin_flag = 0;
|
callin_flag = 0;
|
||||||
cpu_new_thread = task_thread_info(p);
|
cpu_new_thread = task_thread_info(p);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue