tipc: fix a missing rhashtable_walk_exit()
Subsystems (3)
PATCH 1/1 tipc: fix a missing rhashtable_walk_exit()
rhashtable_walk_exit() must be paired with rhashtable_walk_enter().
Fixes 40f9f4397060 ("tipc: Fix tipc_sk_reinit race conditions")
Cc Herbert Xu <[email protected]>
Cc Ying Xue <[email protected]>
Signed-off-by Cong Wang <[email protected]>
--- net/tipc/socket.c | 2 ++ 1 file changed, 2 insertions(+)
net/tipc/socket.c +2 -0
@@ -2672,6 +2672,8 @@ void tipc_sk_reinit(struct net *net)rhashtable_walk_stop (&iter); }while (tsk ==ERR_PTR (-EAGAIN )); + +rhashtable_walk_exit (&iter); }static struct tipc_sock *tipc_sk_lookup (struct net *net,u32 portid)
Signature · 1 line
2.14.4
David Miller
maintainerFrom: Cong Wang <[email protected]>
Date: Thu, 23 Aug 2018 16:19:44 -0700
Quoted 6 lines
rhashtable_walk_exit()must be paired withrhashtable_walk_enter().Fixes 40f9f4397060 ("tipc: Fix tipc_sk_reinit race conditions")Cc Herbert Xu <[email protected]>Cc Ying Xue <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied and queued up for -stable, thanks Cong.
Quoted 6 lines · Cong Wang
rhashtable_walk_exit()must be paired withrhashtable_walk_enter().Fixes 40f9f4397060 ("tipc: Fix tipc_sk_reinit race conditions")Cc Herbert Xu <[email protected]>Cc Ying Xue <[email protected]>Signed-off-by Cong Wang <[email protected]>
Acked-by Ying Xue <[email protected]>
Quoted 18 lines
--- net/tipc/socket.c | 2 ++ 1 file changed, 2 insertions(+)net/tipc/socket.c +2
-0@@ -2672,6 +2672,8 @@ void tipc_sk_reinit(struct net *net)rhashtable_walk_stop (&iter); }while (tsk ==ERR_PTR (-EAGAIN )); + +rhashtable_walk_exit (&iter); }static struct tipc_sock *tipc_sk_lookup (struct net *net,u32 portid)