]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: CM: WARN on attempt to lock invalid VP, not BUG
authorPaul Burton <paul.burton@imgtec.com>
Fri, 2 Jun 2017 21:48:51 +0000 (14:48 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2017 00:42:28 +0000 (02:42 +0200)
commitf9143e81927976b73988b8fae646bda3488289e5
tree7f96f1fe39fbe32deca44d49ec3c1ab26902ccae
parent319a7cb97aa650ad985f37a2e7d460ba3d2b7347
MIPS: CM: WARN on attempt to lock invalid VP, not BUG

Rather than using BUG_ON in the case of an invalid attempt to lock
access to a non-zero VP on a pre-CM3 system, use WARN_ON so that we have
even the slightest chance of recovery.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16194/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/mips-cm.c