aboutsummaryrefslogtreecommitdiff
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2015-05-08 14:38:55 +0200
committerGreg Kroah-Hartman <[email protected]>2015-05-08 14:38:55 +0200
commitb4da00601edd39184fa187d5fd6dfc36232991cc (patch)
treef58bafde4efd814bb78b4f531b1eab48dcf8e561 /net/tipc/socket.c
parentd5a7d45fb5b667fd10a225ccf11fe395fb2417d9 (diff)
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22 (diff)
Merge 4.1-rc2 into staging-next
We want the fixes in here to make merges and testing easier. Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c3
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,
int tipc_sk_rcv(struct net *net, struct sk_buff_head *inputq)
{
u32 dnode, dport = 0;
- int err = -TIPC_ERR_NO_PORT;
+ int err;
struct sk_buff *skb;
struct tipc_sock *tsk;
struct tipc_net *tn;
struct sock *sk;
while (skb_queue_len(inputq)) {
+ err = -TIPC_ERR_NO_PORT;
skb = NULL;
dport = tipc_skb_peek_port(inputq, dport);
tsk = tipc_sk_lookup(net, dport);