Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3997079pxv; Mon, 28 Jun 2021 18:55:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygaX6VEp8th2diFK2coyiFHoqyLoU1x89DMZevbd1stFCw94Rmt53SA9RGZ6gfU4XLsT1U X-Received: by 2002:a05:6e02:1145:: with SMTP id o5mr10198179ill.101.1624931729276; Mon, 28 Jun 2021 18:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624931729; cv=none; d=google.com; s=arc-20160816; b=SQOkzBmU/ErLN4iP8GESG82dvRxLqaPOE+YqaCE+arpMIsohgJQUQfnNayrIPiReeg J/06sau3bYBeS3VHhxpIi6RIqnBYp09kiH5gIMKUXo3wceG6qYwXcQMQW2gazPyYNuha evDqyoRaT43vMbglj+I2nqdiNWQaSW7ncRt/NmybtK6uVnJrk6gtK9qjP4xR8RsGhPBV iIweljI2GrPz+YfdYT6g8QGQ1TrY/kQ4otw1NWP42VzcJelATEYTq5x/kbMPeODjV+fo jnxPfCafA38kcVcrMXsdn6rjfcrmsfblEPEj6qifvGPGGO9QBkmyqAKBWlLE/lqu+a7A YPBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=EbSK67oeEGXNU26F8kBbHwXtXX6SlJ5RTneZWoT9DRM=; b=Lfl79dSpoCsMvsUIaEImETNAL0Mx2Z/CEVkxzQnLkxXQLjwE0WvJtE9U4HZkuFfZLE +57MHjF3esW6Km4RLjwNz6nO1x3jdxkXJ5dLrQPRh77FBXOukX0yG7IKCe2VJ+mCrtF9 J+Fiw3h9m3RlGAIBZnuJEgb8PXE6IASd6xr4UQ5qJ02aEYevGOgKphRLsddeJlfx1xja /MYn8eAP/8P8ml5KdCeUM7BNKYVIiSYRy7TP9cUsf93g3JW3qMOmQnz8hkRCV3oCp2sg dJYnusI67yzegbVIft7UX6UWwCS7zcMCPg0dTWar3Re+Xj0ROHa4LS4C9dbELo1HfPi3 mgOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si19811111iom.90.2021.06.28.18.55.17; Mon, 28 Jun 2021 18:55:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231618AbhF2B5G (ORCPT + 99 others); Mon, 28 Jun 2021 21:57:06 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:6018 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbhF2B5B (ORCPT ); Mon, 28 Jun 2021 21:57:01 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4GDS7q1bhtzXm1h; Tue, 29 Jun 2021 09:49:11 +0800 (CST) Received: from dggpemm000001.china.huawei.com (7.185.36.245) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 29 Jun 2021 09:54:28 +0800 Received: from huawei.com (10.175.113.32) by dggpemm000001.china.huawei.com (7.185.36.245) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 29 Jun 2021 09:54:28 +0800 From: Nanyong Sun To: CC: , , , Subject: [PATCH 0/6] nilfs2: fix incorrect usage of kobject Date: Tue, 29 Jun 2021 10:25:50 +0800 Message-ID: <20210629022556.3985106-1-sunnanyong@huawei.com> X-Mailer: git-send-email 2.18.0.huawei.25 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm000001.china.huawei.com (7.185.36.245) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fix the memory leak problems and NULL pointer problem caused by incorrect usage of kobject in nilfs2 sysfs driver. Nanyong Sun (6): nilfs2: fix memory leak in nilfs_sysfs_create_device_group nilfs2: fix NULL pointer in nilfs_##name##_attr_release nilfs2: fix memory leak in nilfs_sysfs_create_##name##_group nilfs2: fix memory leak in nilfs_sysfs_delete_##name##_group nilfs2: fix memory leak in nilfs_sysfs_create_snapshot_group nilfs2: fix memory leak in nilfs_sysfs_delete_snapshot_group fs/nilfs2/sysfs.c | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) -- 2.18.0.huawei.25