Re: [PATCH V2] nilfs2: Fix reference count leak in nilfs_sysfs_create_device_group

2020-05-27 Thread Ryusuke Konishi
Hi Andrew, This v2 patch was not CC'ed to you. Could you please pick it up from LKML? Regards, Ryusuke Konishi On Thu, May 28, 2020 at 8:23 AM Ryusuke Konishi wrote: > > Hi Andrew, > > Please pick this up as well. > > Acked-by: Ryusuke Konishi > > On Thu, May 28, 2020 at 8:04 AM wrote: > >

Re: [PATCH V2] nilfs2: Fix reference count leak in nilfs_sysfs_create_device_group

2020-05-27 Thread Ryusuke Konishi
Hi Andrew, Please pick this up as well. Acked-by: Ryusuke Konishi On Thu, May 28, 2020 at 8:04 AM wrote: > > From: Qiushi Wu > > kobject_init_and_add() takes reference even when it fails. > In nilfs_sysfs_create_device_group(), the memory allocated by > kobject_init_and_add() is not freed whe

[PATCH V2] nilfs2: Fix reference count leak in nilfs_sysfs_create_device_group

2020-05-27 Thread wu000273
From: Qiushi Wu kobject_init_and_add() takes reference even when it fails. In nilfs_sysfs_create_device_group(), the memory allocated by kobject_init_and_add() is not freed when kobject_init_and_add() fails. Fix this issue by calling kobject_put() to clean up the kobject. Fixes: da7141fb78db ("n