From patchwork Tue May 12 18:18:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 11543731 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 6657F92A for ; Tue, 12 May 2020 18:18:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5818220714 for ; Tue, 12 May 2020 18:18:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730952AbgELSSK (ORCPT ); Tue, 12 May 2020 14:18:10 -0400 Received: from mailrelay115.isp.belgacom.be ([195.238.20.142]:26587 "EHLO mailrelay115.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbgELSSK (ORCPT ); Tue, 12 May 2020 14:18:10 -0400 IronPort-SDR: Kyn4xYby3BztO1uLKn1HLcsQr2f0KuC6Oz/BnuClbNQTsknOMVdeuoqnAn89T9l7IKtS7x7isj tIlhIa1QMfGRuNnvvfsh+GZTqayB1los43JVgGuQecoO75UY9GfhRY5M7CvDC74OiEDFi12ugR q2mqzi8t0umX9GY9obTPhPv2cNjnxFBTsQgs2su42zrvR0pWm+Na7xqrW+ovPcd1I75yvLa6ys X02dx8abase9ZvVAu/jUHA+WDtjgwlKJbQzPL3QjoG/O81jZx5F3ukeuMP+wiZtSQq/7ZIBH8b 6pU= X-Belgacom-Dynamic: yes IronPort-PHdr: 9a23:V/EkSBapINfSme96pxLrUYz/LSx+4OfEezUN459isYplN5qZrsiybnLW6fgltlLVR4KTs6sC17OL9fG6EjVZsd6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCybL9vLBi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QcSgDC13RN9nkIxGWFp0B9j31kOL5CGtGbJAz7E= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BKBwAE57pe/xCltltmhHqBZBIsjSWFfIwYkVgLAQEBAQEBAQEBNAECBAEBhESCBCc4EwIDAQEBAwIFAQEGAQEBAQEBBAQBbAQBAQcKAgGETiEBAwEBBQoBQ4I7IoNCCwEjI09wEoMmglgpsT0zhVGDV4FAgTiHXYUBgUE/hF+KQgSya4JUgnGVKwwdgkuab5AdnzsigVZNIBiDJFAYDZBMF44nQjA3AgYIAQEDCVcBIgGOCAEB X-IPAS-Result: A2BKBwAE57pe/xCltltmhHqBZBIsjSWFfIwYkVgLAQEBAQEBAQEBNAECBAEBhESCBCc4EwIDAQEBAwIFAQEGAQEBAQEBBAQBbAQBAQcKAgGETiEBAwEBBQoBQ4I7IoNCCwEjI09wEoMmglgpsT0zhVGDV4FAgTiHXYUBgUE/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; 12 May 2020 20:18:08 +0200 From: Fabian Frederick To: jack@suse.cz, amir73il@gmail.com Cc: linux-fsdevel@vger.kernel.org, Fabian Frederick Subject: [PATCH V2 3/6 linux-next] notify: add mutex destroy Date: Tue, 12 May 2020 20:18:03 +0200 Message-Id: <20200512181803.405832-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); }