summaryrefslogtreecommitdiff
path: root/net/802
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2018-01-16 21:30:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-23 21:58:17 +0300
commit91c5fbf1e20b0c0508fdeb5bc0763c65a935f480 (patch)
tree176442be9cc9d3fb0c2bf5bc2f072d3a756f85d0 /net/802
parent659af12a2780dd552b6702dafd4598900aeb29e9 (diff)
downloadlinux-91c5fbf1e20b0c0508fdeb5bc0763c65a935f480.tar.xz
can: af_can: can_rcv(): replace WARN_ONCE by pr_warn_once
commit 8cb68751c115d176ec851ca56ecfbb411568c9e8 upstream. If an invalid CAN 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+4386709c0c1284dca827@syzkaller.appspotmail.com Suggested-by: Dmitry Vyukov <dvyukov@google.com> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/802')
0 files changed, 0 insertions, 0 deletions