]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit2f93a60c3d829da07764eafd922beb40e7317aa3
tree7f96f1fe39fbe32deca44d49ec3c1ab26902ccae
parent516db1c61f3fd4328361699a2c74781ab1dbf84c
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