Re: [PATCH] cpu/hotplug: check the return value of idle_thread_get
From: Thomas Gleixner
Date: Wed May 18 2022 - 04:56:41 EST
On Mon, Mar 27 2023 at 20:37, Chao Liu wrote:
> ilde may be ERR_PTR()
Yes, but if that happens in bringup_cpu() or finish_cpu() it would be a
serious bug and the error pointer dereference would be the least of the
problems.
If the initial check in _cpu_up() failed for a CPU then the above
functions cannot be invoked for that CPU ever.
Thanks,
tglx