tipc: fix return value check in tipc_mcast_send_sync()
Subsystems (4)
PATCH 1/1 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().
--- net/tipc/bcast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/tipc/bcast.c +1 -1
@@ -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 */
Quoted 17 lines · Wei Yongjun
Fix the return value check which testing the wrong variable in
tipc_mcast_send_sync().Fixes c55c8edafa91 ("tipc: smooth change between replicast and broadcast")Signed-off-by Wei Yongjun <[email protected]>--- net/tipc/bcast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/tipc/bcast.c +0
-0
net/tipc/bcast.c static int tipc_mcast_send_sync(struct net *net, struct sk_buff *skb, · line 335
Quoted 8 lines
net/tipc/bcast.c +1
-1@@ -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 */
Thanks for the patch, but some 'Reported-by:' tags are missing :/
PATCH v2 1/1 tipc: fix return value check in tipc_mcast_send_sync()
In reply to Wei YongjunFix the return value check which testing the wrong variable in tipc_mcast_send_sync().
---
v1 -> v2: add reported-by
--- net/tipc/bcast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/tipc/bcast.c +1 -1
@@ -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 */
Quoted 41 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Wei Yongjun
Sent: 25-Mar-19 07:31
To: Jon Maloy <[email protected]>; Ying Xue <[email protected]>; Hoang Huu Le <[email protected]>; Eric Dumazet <[email protected]>
Cc: Wei Yongjun <[email protected]>; [email protected]; [email protected]; [email protected]; Hulk Robot <[email protected]>
Subject: [PATCH net-next v2] tipc: fix return value check intipc_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 <[email protected]>Signed-off-by Wei Yongjun <[email protected]>---
v1 -> v2: add reported-by--- net/tipc/bcast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/tipc/bcast.c index renamed from net/tipc/bcast.c +0
-0
88edfb358ae7..76e14dc08bb9100644net/tipc/bcast.c +1
-1@@ -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 */
From: Wei Yongjun <[email protected]>
Date: Mon, 25 Mar 2019 06:31:09 +0000
Quoted 8 lines
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 <[email protected]>Signed-off-by Wei Yongjun <[email protected]>---
v1 -> v2: add reported-by
Applied.