projects
/
elmcan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3bbac3
)
Add can_dropped_invalid_skb() to elmcan_netdev_start_xmit()
author
norly
<ny-git@enpas.org>
Thu, 17 Mar 2022 20:14:59 +0000
(21:14 +0100)
committer
norly
<ny-git@enpas.org>
Thu, 17 Mar 2022 20:14:59 +0000
(21:14 +0100)
module/elmcan.c
patch
|
blob
|
history
diff --git
a/module/elmcan.c
b/module/elmcan.c
index 95a82069dd6740793dba256a0dbcb304c9d34f34..9a58655383bc76a92b527d7ca0a7ed6e23eb7fe4 100644
(file)
--- a/
module/elmcan.c
+++ b/
module/elmcan.c
@@
-847,6
+847,9
@@
static netdev_tx_t elmcan_netdev_start_xmit(struct sk_buff *skb,
struct elmcan *elm = netdev_priv(dev);
struct can_frame *frame = (struct can_frame *)skb->data;
+ if (can_dropped_invalid_skb(dev, skb))
+ return NETDEV_TX_OK;
+
/* BHs are already disabled, so no spin_lock_bh().
* See Documentation/networking/netdevices.txt
*/