mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-23 18:44:50 +00:00
tipc: fix a missing rhashtable_walk_exit()
[ Upstream commitbd583fe304] rhashtable_walk_exit() must be paired with rhashtable_walk_enter(). Fixes:40f9f43970("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f6fb6b2993
commit
36b59c8e48
@@ -2675,6 +2675,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)
|
||||
|
||||
Reference in New Issue
Block a user