Commit 6da88a82 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

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: c55c8eda ("tipc: smooth change between replicast and broadcast")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarJon Maloy <jon.maloy@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f7f9467a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ static int tipc_mcast_send_sync(struct net *net, struct sk_buff *skb,

	/* Allocate dummy message */
	_skb = tipc_buf_acquire(MCAST_H_SIZE, GFP_KERNEL);
	if (!skb)
	if (!_skb)
		return -ENOMEM;

	/* Preparing for 'synching' header */