Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159023
b: refs/heads/master
c: 2eee40c
h: refs/heads/master
i:
  159021: 400a9aa
  159019: 70f7260
  159015: 363cce3
  159007: 0fbb73e
v: v3
  • Loading branch information
Rémi Denis-Courmont authored and David S. Miller committed Jul 24, 2009
1 parent 77d71ae commit bb53181
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: 2e2fb4b33d62c742019774c5e6e47711a3d60505
refs/heads/master: 2eee40c7f7c3734b28456169b2945e07d5ac0e2d
5 changes: 4 additions & 1 deletion trunk/net/phonet/datagram.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ static int pn_recvmsg(struct kiocb *iocb, struct sock *sk,
static int pn_backlog_rcv(struct sock *sk, struct sk_buff *skb)
{
int err = sock_queue_rcv_skb(sk, skb);
if (err < 0)
if (err < 0) {
kfree_skb(skb);
if (err == -ENOMEM)
atomic_inc(&sk->sk_drops);
}
return err ? NET_RX_DROP : NET_RX_SUCCESS;
}

Expand Down

0 comments on commit bb53181

Please sign in to comment.