diff options
author | norly <ny-git@enpas.org> | 2022-03-17 21:14:59 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2022-03-17 21:14:59 +0100 |
commit | 6b25b028af5f6a6ff0d96841f8679db60e0ffbe7 (patch) | |
tree | 9a235a52c5207af77301ae19b4f2ff588188612d /module | |
parent | e3bbac3f9ae12f56602547bdb4057f9c8dc545ee (diff) |
Add can_dropped_invalid_skb() to elmcan_netdev_start_xmit()
Diffstat (limited to 'module')
-rw-r--r-- | module/elmcan.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/elmcan.c b/module/elmcan.c index 95a8206..9a58655 100644 --- 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 */ |