]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nilfs2: fix memory leak in nilfs_sysfs_delete_##name##_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)
commit46accddc68b58c7e6509e63937105b02708681af
tree0ecbc975072eaa101eb0fbdf97e5c670f21be487
parent2ef34726ec35b0b25aa4dc5804399cafbf7eba3a
nilfs2: fix memory leak in nilfs_sysfs_delete_##name##_group

The 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-5-sunnanyong@huawei.com
Link: https://lkml.kernel.org/r/1625651306-10829-5-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