can: af_can: can_rcv(): replace WARN_ONCE by pr_warn_once
authorMarc Kleine-Budde <[email protected]>
Tue, 16 Jan 2018 18:30:14 +0000 (19:30 +0100)
committerMarc Kleine-Budde <[email protected]>
Thu, 18 Jan 2018 08:32:54 +0000 (09:32 +0100)
commit8cb68751c115d176ec851ca56ecfbb411568c9e8
tree08b081492436174f37a8fe3d3c9fa8c2f9e47a76
parentad9294dbc227cbc8e173b3b963e7dd9af5314f77
can: af_can: can_rcv(): replace WARN_ONCE by pr_warn_once

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: [email protected]
Suggested-by: Dmitry Vyukov <[email protected]>
Acked-by: Oliver Hartkopp <[email protected]>
Cc: linux-stable <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
net/can/af_can.c