Skip to content

Commit

Permalink
can: janz-ican3: drop invalid skbs
Browse files Browse the repository at this point in the history
The commit which added the janz-ican3 driver and commit
3ccd4c6 "can: Unify droping of invalid tx skbs and netdev stats" were
committed into mainline Linux during the same merge window.

Therefore, the addition of this code to the janz-ican3 driver was
forgotten. This patch adds the expected code.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Ira W. Snyder authored and Marc Kleine-Budde committed Jul 20, 2012
1 parent 8456a91 commit 007890d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/can/janz-ican3.c
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,9 @@ static int ican3_xmit(struct sk_buff *skb, struct net_device *ndev)
void __iomem *desc_addr;
unsigned long flags;

if (can_dropped_invalid_skb(ndev, skb))
return NETDEV_TX_OK;

spin_lock_irqsave(&mod->lock, flags);

/* check that we can actually transmit */
Expand Down

0 comments on commit 007890d

Please sign in to comment.