Skip to content

Commit

Permalink
tipc: fix return value check in tipc_mcast_send_sync()
Browse files Browse the repository at this point in the history
Fix the return value check which testing the wrong variable
in tipc_mcast_send_sync().

Fixes: c55c8ed ("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>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Mar 26, 2019
1 parent f7f9467 commit 6da88a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/bcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6da88a8

Please sign in to comment.