From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cong Wang Subject: [Patch net] tipc: fix a missing rhashtable_walk_exit() Date: Thu, 23 Aug 2018 16:19:44 -0700 Message-ID: <20180823231944.4959-1-xiyou.wangcong@gmail.com> Cc: Cong Wang , Herbert Xu , Ying Xue To: netdev@vger.kernel.org Return-path: Received: from mail-pg1-f195.google.com ([209.85.215.195]:33980 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbeHXCvq (ORCPT ); Thu, 23 Aug 2018 22:51:46 -0400 Received: by mail-pg1-f195.google.com with SMTP id u10-v6so1663660pgr.1 for ; Thu, 23 Aug 2018 16:19:50 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: rhashtable_walk_exit() must be paired with rhashtable_walk_enter(). Fixes: 40f9f4397060 ("tipc: Fix tipc_sk_reinit race conditions") Cc: Herbert Xu Cc: Ying Xue Signed-off-by: Cong Wang --- net/tipc/socket.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.14.4