Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125945
b: refs/heads/master
c: 2269201
h: refs/heads/master
i:
  125943: 5db63a6
v: v3
  • Loading branch information
Baruch Siach authored and David S. Miller committed Jan 5, 2009
1 parent 817cdd7 commit 4d806a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: fecc7036e73a71231045e03ff524b5f8bd892a84
refs/heads/master: 22692018b93f0782cda5a843cecfffda1854eb8d
4 changes: 3 additions & 1 deletion trunk/drivers/net/enc28j60.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,14 +944,16 @@ static void enc28j60_hw_rx(struct net_device *ndev)
if (netif_msg_rx_status(priv))
enc28j60_dump_rsv(priv, __func__, next_packet, len, rxstat);

if (!RSV_GETBIT(rxstat, RSV_RXOK)) {
if (!RSV_GETBIT(rxstat, RSV_RXOK) || len > MAX_FRAMELEN) {
if (netif_msg_rx_err(priv))
dev_err(&ndev->dev, "Rx Error (%04x)\n", rxstat);
ndev->stats.rx_errors++;
if (RSV_GETBIT(rxstat, RSV_CRCERROR))
ndev->stats.rx_crc_errors++;
if (RSV_GETBIT(rxstat, RSV_LENCHECKERR))
ndev->stats.rx_frame_errors++;
if (len > MAX_FRAMELEN)
ndev->stats.rx_over_errors++;
} else {
skb = dev_alloc_skb(len + NET_IP_ALIGN);
if (!skb) {
Expand Down

0 comments on commit 4d806a0

Please sign in to comment.