projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b1d25e
)
Turn BUG_ON() into WARN_ON()
author
norly
<ny-git@enpas.org>
Tue, 19 Feb 2019 22:00:11 +0000
(23:00 +0100)
committer
norly
<ny-git@enpas.org>
Tue, 19 Feb 2019 22:00:11 +0000
(23:00 +0100)
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index 894bfacbee0dbe06cd681fe8d1bd5334dade83e1..f9f6c7245aaa18c69e33790a9bcd2130ad768160 100644
(file)
--- 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) {