diff options
Diffstat (limited to 'net/tipc/socket.c')
| -rw-r--r-- | net/tipc/socket.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index ee90d74d7516..9074b5cede38 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c  | |||
| @@ -1764,13 +1764,14 @@ static int tipc_sk_enqueue(struct sk_buff_head *inputq, struct sock *sk, | |||
| 1764 | int tipc_sk_rcv(struct net *net, struct sk_buff_head *inputq) | 1764 | int tipc_sk_rcv(struct net *net, struct sk_buff_head *inputq) | 
| 1765 | { | 1765 | { | 
| 1766 | u32 dnode, dport = 0; | 1766 | u32 dnode, dport = 0; | 
| 1767 | int err = -TIPC_ERR_NO_PORT; | 1767 | int err; | 
| 1768 | struct sk_buff *skb; | 1768 | struct sk_buff *skb; | 
| 1769 | struct tipc_sock *tsk; | 1769 | struct tipc_sock *tsk; | 
| 1770 | struct tipc_net *tn; | 1770 | struct tipc_net *tn; | 
| 1771 | struct sock *sk; | 1771 | struct sock *sk; | 
| 1772 | 1772 | ||
| 1773 | while (skb_queue_len(inputq)) { | 1773 | while (skb_queue_len(inputq)) { | 
| 1774 | err = -TIPC_ERR_NO_PORT; | ||
| 1774 | skb = NULL; | 1775 | skb = NULL; | 
| 1775 | dport = tipc_skb_peek_port(inputq, dport); | 1776 | dport = tipc_skb_peek_port(inputq, dport); | 
| 1776 | tsk = tipc_sk_lookup(net, dport); | 1777 | tsk = tipc_sk_lookup(net, dport); | 
