Acked-by: Jon Maloy <jon.ma...@ericsson.com>

> -----Original Message-----
> From: netdev-ow...@vger.kernel.org <netdev-ow...@vger.kernel.org>
> On Behalf Of Wei Yongjun
> Sent: 25-Mar-19 07:31
> To: Jon Maloy <jon.ma...@ericsson.com>; Ying Xue
> <ying....@windriver.com>; Hoang Huu Le <hoang.h...@dektech.com.au>;
> Eric Dumazet <eric.duma...@gmail.com>
> Cc: Wei Yongjun <weiyongj...@huawei.com>; net...@vger.kernel.org;
> tipc-discussion@lists.sourceforge.net; kernel-janit...@vger.kernel.org; Hulk
> Robot <hul...@huawei.com>
> Subject: [PATCH net-next v2] 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 <hul...@huawei.com>
> Signed-off-by: Wei Yongjun <weiyongj...@huawei.com>
> ---
> v1 -> v2: add reported-by
> ---
>  net/tipc/bcast.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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,
> 
>       /* Allocate dummy message */
>       _skb = tipc_buf_acquire(MCAST_H_SIZE, GFP_KERNEL);
> -     if (!skb)
> +     if (!_skb)
>               return -ENOMEM;
> 
>       /* Preparing for 'synching' header */
> 
> 



_______________________________________________
tipc-discussion mailing list
tipc-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tipc-discussion

Reply via email to