aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2019-03-25 02:31:09 -0400
committerDavid S. Miller <davem@davemloft.net>2019-03-26 14:39:37 -0400
commit6da88a82df758de32c2346084b08c18b692481b0 (patch)
tree5c538ed6212adef86be419a24f0b1c1615a791ba /net/tipc
parentf7f9467ad3c3da66ae79cee0e5da4b4e10e73f39 (diff)
tipc: fix return value check in tipc_mcast_send_sync()
Fix the return value check which testing the wrong variable in tipc_mcast_send_sync(). Fixes: c55c8edafa91 ("tipc: smooth change between replicast and broadcast") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/bcast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c
index 88edfb358ae7..76e14dc08bb9 100644
--- a/net/tipc/bcast.c
+++ b/net/tipc/bcast.c
@@ -329,7 +329,7 @@ static int tipc_mcast_send_sync(struct net *net, struct sk_buff *skb,
329 329
330 /* Allocate dummy message */ 330 /* Allocate dummy message */
331 _skb = tipc_buf_acquire(MCAST_H_SIZE, GFP_KERNEL); 331 _skb = tipc_buf_acquire(MCAST_H_SIZE, GFP_KERNEL);
332 if (!skb) 332 if (!_skb)
333 return -ENOMEM; 333 return -ENOMEM;
334 334
335 /* Preparing for 'synching' header */ 335 /* Preparing for 'synching' header */