diff --git a/[refs] b/[refs] index 91eedd502d95..b7432d24a20e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cd3decdfd1dbab8a585eafe2e5b9866f193de99e +refs/heads/master: 2b78f9a002dccc587912af4da3bf1db86909de91 diff --git a/trunk/net/tipc/bcast.c b/trunk/net/tipc/bcast.c index 5ca8fdda63ca..8f58df24bac5 100644 --- a/trunk/net/tipc/bcast.c +++ b/trunk/net/tipc/bcast.c @@ -417,13 +417,19 @@ int tipc_bclink_send_msg(struct sk_buff *buf) spin_lock_bh(&bc_lock); + if (!bclink->bcast_nodes.count) { + res = msg_data_sz(buf_msg(buf)); + buf_discard(buf); + goto exit; + } + res = tipc_link_send_buf(bcl, buf); if (likely(res > 0)) bclink_set_last_sent(); bcl->stats.queue_sz_counts++; bcl->stats.accu_queue_sz += bcl->out_queue_size; - +exit: spin_unlock_bh(&bc_lock); return res; }