Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183474
b: refs/heads/master
c: 2d4b6fa
h: refs/heads/master
v: v3
  • Loading branch information
Wolfgang Grandegger authored and David S. Miller committed Jan 8, 2010
1 parent 7a2a710 commit 8b14c3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5856b606e69d3e4dc2d718b475e216eb30ee2006
refs/heads/master: 2d4b6faf7d1818e9a52ae9f068ab4ffd9c3be923
9 changes: 6 additions & 3 deletions trunk/drivers/net/can/mscan/mscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2005-2006 Andrey Volkov <avolkov@varma-el.com>,
* Varma Electronics Oy
* Copyright (C) 2008-2009 Wolfgang Grandegger <wg@grandegger.com>
* Copytight (C) 2008-2009 Pengutronix <kernel@pengutronix.de>
* Copyright (C) 2008-2009 Pengutronix <kernel@pengutronix.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the version 2 of the GNU General Public License
Expand Down Expand Up @@ -177,8 +177,11 @@ static netdev_tx_t mscan_start_xmit(struct sk_buff *skb, struct net_device *dev)
int i, rtr, buf_id;
u32 can_id;

if (frame->can_dlc > 8)
return -EINVAL;
if (skb->len != sizeof(*frame) || frame->can_dlc > 8) {
kfree_skb(skb);
dev->stats.tx_dropped++;
return NETDEV_TX_OK;
}

out_8(&regs->cantier, 0);

Expand Down

0 comments on commit 8b14c3b

Please sign in to comment.