Message ID | 1394006178-23966-3-git-send-email-erik.hugne@ericsson.com |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/tipc/server.c b/net/tipc/server.c index 91423ca..0eb6301 100644 --- a/net/tipc/server.c +++ b/net/tipc/server.c @@ -430,10 +430,12 @@ int tipc_conn_sendmsg(struct tipc_server *s, int conid, list_add_tail(&e->list, &con->outqueue); spin_unlock_bh(&con->outqueue_lock); - if (test_bit(CF_CONNECTED, &con->flags)) + if (test_bit(CF_CONNECTED, &con->flags)) { if (!queue_work(s->send_wq, &con->swork)) conn_put(con); - + } else { + conn_put(con); + } return 0; }