Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1177bf97 authored by Akinobu Mita's avatar Akinobu Mita Committed by David S. Miller
Browse files

[SPARC64]: check fork_idle() error



Check the return value of fork_idle() to catch error.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 27097ef9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -353,6 +353,8 @@ static int __devinit smp_boot_one_cpu(unsigned int cpu)
	int timeout, ret;

	p = fork_idle(cpu);
	if (IS_ERR(p))
		return PTR_ERR(p);
	callin_flag = 0;
	cpu_new_thread = task_thread_info(p);