Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56543
b: refs/heads/master
c: 3225b91
h: refs/heads/master
i:
  56541: ffe83e7
  56539: ece03db
  56535: 8e07c4b
  56527: 78434bd
  56511: 6169015
v: v3
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed May 18, 2007
1 parent 9a0ba30 commit dbfa825
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: 53419c68517ee296f737cdc0acaca6eb1ae23aeb
refs/heads/master: 3225b919036a3ec2e96bb36b7a4fd64c43fdbe84
4 changes: 3 additions & 1 deletion trunk/drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2141,8 +2141,10 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do)
switch (le->opcode & ~HW_OWNER) {
case OP_RXSTAT:
skb = sky2_receive(dev, length, status);
if (!skb)
if (unlikely(!skb)) {
sky2->net_stats.rx_dropped++;
goto force_update;
}

skb->protocol = eth_type_trans(skb, dev);
sky2->net_stats.rx_packets++;
Expand Down

0 comments on commit dbfa825

Please sign in to comment.