Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264262
b: refs/heads/master
c: 7091fbd
h: refs/heads/master
v: v3
  • Loading branch information
Willem de Bruijn authored and David S. Miller committed Oct 3, 2011
1 parent 09ad0b3 commit b247501
Show file tree
Hide file tree
Showing 2 changed files with 5 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: d0e5d83284dac15c015bb48115b6780f5a6413cd
refs/heads/master: 7091fbd82cd5686444ffe9935ed6a8190101fe9d
5 changes: 4 additions & 1 deletion trunk/net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,10 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev,
return 0;

drop_n_acct:
po->stats.tp_drops = atomic_inc_return(&sk->sk_drops);
spin_lock(&sk->sk_receive_queue.lock);
po->stats.tp_drops++;
atomic_inc(&sk->sk_drops);
spin_unlock(&sk->sk_receive_queue.lock);

drop_n_restore:
if (skb_head != skb->data && skb_shared(skb)) {
Expand Down

0 comments on commit b247501

Please sign in to comment.