From patchwork Mon May 11 18:00:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 11541397 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1B2F2186E for ; Mon, 11 May 2020 18:01:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0BD94206B9 for ; Mon, 11 May 2020 18:01:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728711AbgEKSBF (ORCPT ); Mon, 11 May 2020 14:01:05 -0400 Received: from mailrelay107.isp.belgacom.be ([195.238.20.134]:58467 "EHLO mailrelay107.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbgEKSBF (ORCPT ); Mon, 11 May 2020 14:01:05 -0400 IronPort-SDR: aUaxfGE8BlacwG/G0pIlSUrEd+suneAgK2yiBLlT0mhN7NN3z4lsrO3u8XAxDcRBGVcDm9tC58 /E36Fb4sCdcmJ9Z5T6WgXhGWj1fHTFYwoTXpLN6xqSAGC+SX91n3VoHrnYvNyHMRLQ12xCacjZ HOTDNqse1w11U5nYn/A3NwwYbBhnxEo1qWhAhDgetqEyNruvjWbIXcmMyoydp3x95OjI0kwAJ0 kTzYlhOPPlpZBeYA+FO30Hurb/QJcXsHekrQkADpB1dRwW2RprEhyIwwIwQHZFqrYR591Ihyn5 frQ= X-Belgacom-Dynamic: yes IronPort-PHdr: 9a23:oW86ABKzpNanoYpLoNmcpTZWNBhigK39O0sv0rFitYgfLvTxwZ3uMQTl6Ol3ixeRBMOHsq8C2rKd6vm6EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpT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zud5Q4T8UwjPVsyKWVCrXpOsDGdiHZoK39YSbhMlSJ2ZhRfZ0n/yDg== X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BKBwACkrle/xCltltmhHqBZBIsjSWFeowYkVgLAQEBAQEBAQEBNAECBAEBhESCDSc4EwIDAQEBAwIFAQEGAQEBAQEBBAQBbAQBAQcKAgGETiEBAwEBBQoBQ4I7IoNCCwEjI09wEoMmglgpsEEzhVGDVoFAgTiHXYUBgUE/hF+KQgSya4JUgnGVKwwdgkuab5AdnzsigVZNIBiDJFAYDZBMF44nQjA3AgYIAQEDCVcBIgGOCAEB X-IPAS-Result: A2BKBwACkrle/xCltltmhHqBZBIsjSWFeowYkVgLAQEBAQEBAQEBNAECBAEBhESCDSc4EwIDAQEBAwIFAQEGAQEBAQEBBAQBbAQBAQcKAgGETiEBAwEBBQoBQ4I7IoNCCwEjI09wEoMmglgpsEEzhVGDVoFAgTiHXYUBgUE/hF+KQgSya4JUgnGVKwwdgkuab5AdnzsigVZNIBiDJFAYDZBMF44nQjA3AgYIAQEDCVcBIgGOCAEB Received: from 16.165-182-91.adsl-dyn.isp.belgacom.be (HELO biggussolus.home) ([91.182.165.16]) by relay.skynet.be with ESMTP; 11 May 2020 20:01:03 +0200 From: Fabian Frederick To: jack@suse.cz, amir73il@gmail.com Cc: linux-fsdevel@vger.kernel.org, Fabian Frederick Subject: [PATCH 4/9 linux-next] notify: add mutex destroy Date: Mon, 11 May 2020 20:00:59 +0200 Message-Id: <20200511180059.215002-1-fabf@skynet.be> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org destroy mutex before group kfree Signed-off-by: Fabian Frederick --- fs/notify/group.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/notify/group.c b/fs/notify/group.c index f2cba2265061..0a2dc03d13eb 100644 --- a/fs/notify/group.c +++ b/fs/notify/group.c @@ -25,6 +25,7 @@ static void fsnotify_final_destroy_group(struct fsnotify_group *group) group->ops->free_group_priv(group); mem_cgroup_put(group->memcg); + mutex_destroy(&group->mark_mutex); kfree(group); }