From 77e7a60b1bd396456efc111ec0cbe345778b15ad Mon Sep 17 00:00:00 2001 From: norly Date: Tue, 19 Feb 2019 23:00:11 +0100 Subject: [PATCH] Turn BUG_ON() into WARN_ON() --- module/elmcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/elmcan.c b/module/elmcan.c index 894bfac..f9f6c72 100644 --- a/module/elmcan.c +++ b/module/elmcan.c @@ -874,7 +874,7 @@ static netdev_tx_t elmcan_netdev_start_xmit(struct sk_buff *skb, /* We shouldn't get here after a hardware fault: * can_bus_off() calls netif_carrier_off() */ - BUG_ON(elm->hw_failure); + WARN_ON(elm->hw_failure); if (elm->tty == NULL || elm->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) { -- 2.30.2