Add can_dropped_invalid_skb() to elmcan_netdev_start_xmit()
[elmcan.git] / module / elmcan.c
index 95a82069dd6740793dba256a0dbcb304c9d34f34..9a58655383bc76a92b527d7ca0a7ed6e23eb7fe4 100644 (file)
@@ -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
         */