Re: powerpc/smp: Get cpu only after validity check

2017-07-27 Thread Michael Ellerman
On Tue, 2017-07-04 at 04:22:46 UTC, Santosh Sivaraj wrote: > Check for validity of cpu before calling get_hard_smp_processor_id. > > Found with coverity. > > Signed-off-by: Santosh Sivaraj Applied to powerpc next, thanks.

[PATCH] powerpc/smp: Get cpu only after validity check

2017-07-03 Thread Santosh Sivaraj
Check for validity of cpu before calling get_hard_smp_processor_id. Found with coverity. Signed-off-by: Santosh Sivaraj --- arch/powerpc/platforms/powernv/smp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/powernv/smp.c