OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:48:59 +0000 (22:48 +0200)
commitd04f1b44f64416a4b2a9ba35b6d0610325163349
tree12bc6fdc9d871ca77bbd0716fe755ddeaaa7b139
parente498af87075ae63b39bb90cdc67e35b9fe592acb
MIPS: WARN_ON invalid DMA cache maintenance, not BUG_ON

[ 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>
arch/mips/mm/c-r4k.c