]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
MIPS: WARN_ON invalid DMA cache maintenance, not BUG_ON
authorPaul Burton <paul.burton@imgtec.com>
Fri, 25 Nov 2016 18:46:09 +0000 (18:46 +0000)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:47:56 +0000 (19:47 -0600)
commitb72720d451ffe7da385ee57078a414068663c492
tree39614125a03a62d7719765646e6789a4cbc5258c
parent43aad8375ce967d4bf05c3fe413f28e6c8818e8b
MIPS: WARN_ON invalid DMA cache maintenance, not BUG_ON

BugLink: https://bugs.launchpad.net/bugs/1836117
[ Upstream commit d4da0e97baea8768b3d66ccef3967bebd50dfc3b ]

If a driver causes DMA cache maintenance with a zero length then we
currently BUG and kill the kernel. As this is a scenario that we may
well be able to recover from, WARN & return in the condition instead.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/14623/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/mips/mm/c-r4k.c