Message ID | 20210625013933.6EAm6MayP%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=O4g6=LT=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C18EC49EA5 for <linux-mm@archiver.kernel.org>; Fri, 25 Jun 2021 01:39:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DBA106044F for <linux-mm@archiver.kernel.org>; Fri, 25 Jun 2021 01:39:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DBA106044F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id EED578D000B; Thu, 24 Jun 2021 21:39:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E9D2D8D0007; Thu, 24 Jun 2021 21:39:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC9B08D000B; Thu, 24 Jun 2021 21:39:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0036.hostedemail.com [216.40.44.36]) by kanga.kvack.org (Postfix) with ESMTP id 99F638D0007 for <linux-mm@kvack.org>; Thu, 24 Jun 2021 21:39:34 -0400 (EDT) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id BCCD0250B7 for <linux-mm@kvack.org>; Fri, 25 Jun 2021 01:39:34 +0000 (UTC) X-FDA: 78290539068.15.BEFD717 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf11.hostedemail.com (Postfix) with ESMTP id 81F99200106B for <linux-mm@kvack.org>; Fri, 25 Jun 2021 01:39:34 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 8AE7D6044F; Fri, 25 Jun 2021 01:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1624585173; bh=Rl3INkCWLXQUZ+pg4mwfU0Rz3o+ozGzkbWJMmLIpk1A=; h=Date:From:To:Subject:In-Reply-To:From; b=gJvkjtUf27BQxW50JGOvzv91hHLghsv1nOo6OQxlp5Q4aaNOufZuLa2RjFvrkwihy txV8l7ARgaDLsSMFeMzzGUUrWLqSXkrE+QOHdAXz4lu7zhnSKCeoUJjzoxfZbDyMhh hPcKUB0ctMqurm6OmHyMiwkrRcHr72hJNmhQo26M= Date: Thu, 24 Jun 2021 18:39:33 -0700 From: Andrew Morton <akpm@linux-foundation.org> To: akpm@linux-foundation.org, konishi.ryusuke@gmail.com, linux-mm@kvack.org, mlsemon35@gmail.com, mm-commits@vger.kernel.org, paskripkin@gmail.com, torvalds@linux-foundation.org Subject: [patch 11/24] nilfs2: fix memory leak in nilfs_sysfs_delete_device_group Message-ID: <20210625013933.6EAm6MayP%akpm@linux-foundation.org> In-Reply-To: <20210624183838.ac3161ca4a43989665ac8b2f@linux-foundation.org> User-Agent: s-nail v14.8.16 Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=gJvkjtUf; spf=pass (imf11.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 81F99200106B X-Stat-Signature: xjab3ymqyfjmcrpnmk4tkb47fwmawrut X-HE-Tag: 1624585174-574906 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/24] mm: page_vma_mapped_walk(): use page for pvmw->page
|
expand
|
--- a/fs/nilfs2/sysfs.c~nilfs2-fix-memory-leak-in-nilfs_sysfs_delete_device_group +++ a/fs/nilfs2/sysfs.c @@ -1053,6 +1053,7 @@ void nilfs_sysfs_delete_device_group(str nilfs_sysfs_delete_superblock_group(nilfs); nilfs_sysfs_delete_segctor_group(nilfs); kobject_del(&nilfs->ns_dev_kobj); + kobject_put(&nilfs->ns_dev_kobj); kfree(nilfs->ns_dev_subgroups); }