can: af_can: canfd_rcv(): replace WARN_ONCE by pr_warn_once
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 16 Jan 2018 18:30:14 +0000 (19:30 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 18 Jan 2018 08:32:54 +0000 (09:32 +0100)
commitd4689846881d160a4d12a514e991a740bcb5d65a
tree14c1023417a3bd20db16427b43e9dd684be0cb97
parent8cb68751c115d176ec851ca56ecfbb411568c9e8
can: af_can: canfd_rcv(): replace WARN_ONCE by pr_warn_once

If an invalid CANFD frame is received, from a driver or from a tun
interface, a Kernel warning is generated.

This patch replaces the WARN_ONCE by a simple pr_warn_once, so that a
kernel, bootet with panic_on_warn, does not panic. A printk seems to be
more appropriate here.

Reported-by: syzbot+e3b775f40babeff6e68b@syzkaller.appspotmail.com
Suggested-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/af_can.c