[PATCH 0/6] nilfs2: fix incorrect usage of kobject

From: Ryusuke Konishi
Date: Wed Jul 07 2021 - 05:48:34 EST


Hi Andrew,

Please send the following patchset to upstream.

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

This patchset from Nanyong Sun fixes memory leak issues and a NULL
pointer dereference issue caused by incorrect usage of kboject in
nilfs2 sysfs implementation.

Thanks,
Ryusuke Konishi
--
fs/nilfs2/sysfs.c | 26 +++++++++++---------------
1 file changed, 11 insertions(+), 15 deletions(-)

--
1.8.3.1