]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Get cpu only after validity check
authorSantosh Sivaraj <santosh@fossix.org>
Tue, 4 Jul 2017 04:22:46 +0000 (09:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 24 Jul 2017 11:17:55 +0000 (21:17 +1000)
commit8e8d4978219b079144c1fe3606ad5376f45c0dd3
treec5a6301e74a238b7e2e926df23fa4e0a49f54b58
parent830c16efd3192a0556bd429931b332b008dc72b7
powerpc/powernv: Get cpu only after validity check

Check for validity of cpu before calling get_hard_smp_processor_id().

Found with coverity.

Signed-off-by: Santosh Sivaraj <santosh@fossix.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/smp.c