]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nilfs2: fix memory leak in nilfs_sysfs_delete_snapshot_group
authorNanyong Sun <sunnanyong@huawei.com>
Tue, 24 Aug 2021 00:00:02 +0000 (10:00 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:56 +0000 (09:34 +1000)
commita065e7e695790c9e75ef6027962bfc93d64c57dc
tree4730ce36f113627edfd47c9fcd5d09e6ae8bb145
parentf31bdb75f5b877c8c67f8df0688867807eb3a23b
nilfs2: fix memory leak in nilfs_sysfs_delete_snapshot_group

kobject_put() should be used to cleanup the memory associated with the
kobject instead of kobject_del().  See the section "Kobject removal" of
"Documentation/core-api/kobject.rst".

Link: https://lkml.kernel.org/r/20210629022556.3985106-7-sunnanyong@huawei.com
Link: https://lkml.kernel.org/r/1625651306-10829-7-git-send-email-konishi.ryusuke@gmail.com
Signed-off-by: Nanyong Sun <sunnanyong@huawei.com>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
fs/nilfs2/sysfs.c