aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2018-08-23 23:19:44 +0000
committerDavid S. Miller <[email protected]>2018-08-30 00:52:58 +0000
commitbd583fe30427500a2d0abe25724025b1cb5e2636 (patch)
tree81b121a7419eb4d8849bb4923f9b48b42eb65da6 /net/tipc/socket.c
parentvti6: remove !skb->ignore_df check from vti6_xmit() (diff)
downloadkernel-bd583fe30427500a2d0abe25724025b1cb5e2636.tar.gz
kernel-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 <[email protected]> Cc: Ying Xue <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c2
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)