diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2018-08-23 16:19:44 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-29 17:52:58 -0700 |
commit | bd583fe30427500a2d0abe25724025b1cb5e2636 (patch) | |
tree | 81b121a7419eb4d8849bb4923f9b48b42eb65da6 /net | |
parent | 9f2895461439fda2801a7906fb4c5fb3dbb37a0a (diff) | |
download | lwn-bd583fe30427500a2d0abe25724025b1cb5e2636.tar.gz lwn-bd583fe30427500a2d0abe25724025b1cb5e2636.zip |
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 <herbert@gondor.apana.org.au>
Cc: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index c1e93c9515bc..c9a50b62c738 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -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) |