mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-18 02:46:06 +00:00
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>
This commit is contained in:
parent
f7f9467ad3
commit
6da88a82df
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user