Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214816
b: refs/heads/master
c: e1a5964
h: refs/heads/master
v: v3
  • Loading branch information
Rémi Denis-Courmont authored and David S. Miller committed Oct 1, 2010
1 parent a3ded04 commit 982abe8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 1020660189bb72ae25fd68733ee473d29b8604b5
refs/heads/master: e1a5964f0c32a75b17360cfc565d25aaedbff747
10 changes: 8 additions & 2 deletions trunk/net/phonet/pep.c
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,7 @@ static int pipe_skb_send(struct sock *sk, struct sk_buff *skb)
{
struct pep_sock *pn = pep_sk(sk);
struct pnpipehdr *ph;
int err;
#ifdef CONFIG_PHONET_PIPECTRLR
struct sockaddr_pn spn = {
.spn_family = AF_PHONET,
Expand All @@ -1314,10 +1315,15 @@ static int pipe_skb_send(struct sock *sk, struct sk_buff *skb)
ph->message_id = PNS_PIPE_DATA;
ph->pipe_handle = pn->pipe_handle;
#ifdef CONFIG_PHONET_PIPECTRLR
return pn_skb_send(sk, skb, &spn);
err = pn_skb_send(sk, skb, &spn);
#else
return pn_skb_send(sk, skb, &pipe_srv);
err = pn_skb_send(sk, skb, &pipe_srv);
#endif

if (err && pn_flow_safe(pn->tx_fc))
atomic_inc(&pn->tx_credits);
return err;

}

static int pep_sendmsg(struct kiocb *iocb, struct sock *sk,
Expand Down

0 comments on commit 982abe8

Please sign in to comment.