From 239e653f44e290df060565177e2c9a640cbeca67 Mon Sep 17 00:00:00 2001 From: Allan Stephens Date: Mon, 24 Oct 2011 13:05:55 -0400 Subject: [PATCH] --- yaml --- r: 279102 b: refs/heads/master c: 2b78f9a002dccc587912af4da3bf1db86909de91 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/tipc/bcast.c | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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; }