diff options
-rw-r--r-- | drivers/net/sky2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 887c1cea1b42..bde28ad9797d 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -2141,8 +2141,10 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do) | |||
2141 | switch (le->opcode & ~HW_OWNER) { | 2141 | switch (le->opcode & ~HW_OWNER) { |
2142 | case OP_RXSTAT: | 2142 | case OP_RXSTAT: |
2143 | skb = sky2_receive(dev, length, status); | 2143 | skb = sky2_receive(dev, length, status); |
2144 | if (!skb) | 2144 | if (unlikely(!skb)) { |
2145 | sky2->net_stats.rx_dropped++; | ||
2145 | goto force_update; | 2146 | goto force_update; |
2147 | } | ||
2146 | 2148 | ||
2147 | skb->protocol = eth_type_trans(skb, dev); | 2149 | skb->protocol = eth_type_trans(skb, dev); |
2148 | sky2->net_stats.rx_packets++; | 2150 | sky2->net_stats.rx_packets++; |