]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/cpuhp: BUG -> WARN conversion in offline path
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 27 Sep 2021 20:19:31 +0000 (15:19 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 8 Oct 2021 13:16:00 +0000 (00:16 +1100)
commit2e157da0f9f1750a5c816edad9bedc9a81e5744d
treeb3b2b981e1158fb4d7c9a5b1e74c806d5aa0e3d4
parentb8f2783441accb4f7a8b4332aa5a749aa2805720
powerpc/cpuhp: BUG -> WARN conversion in offline path

If, due to bugs elsewhere, we get into unregister_cpu_online() with a CPU
that isn't marked hotpluggable, we can emit a warning and return an
appropriate error instead of crashing.

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210927201933.76786-3-nathanl@linux.ibm.com
arch/powerpc/kernel/sysfs.c