Skip to content

Commit bd583fe

Browse files
congwangdavem330
authored andcommitted
tipc: fix a missing rhashtable_walk_exit()
rhashtable_walk_exit() must be paired with rhashtable_walk_enter(). Fixes: 40f9f43 ("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]>
1 parent 9f28954 commit bd583fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/tipc/socket.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2672,6 +2672,8 @@ void tipc_sk_reinit(struct net *net)
26722672

26732673
rhashtable_walk_stop(&iter);
26742674
} while (tsk == ERR_PTR(-EAGAIN));
2675+
2676+
rhashtable_walk_exit(&iter);
26752677
}
26762678

26772679
static struct tipc_sock *tipc_sk_lookup(struct net *net, u32 portid)

0 commit comments

Comments
 (0)