Re: [f2fs-dev] [PATCH] f2fs: fix uninitialized kobject put in f2fs_init_sysfs()

From: patchwork-bot+f2fs

Date: Wed Apr 15 2026 - 12:54:25 EST


Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:

On Fri, 10 Apr 2026 20:47:26 +0800 you wrote:
> In f2fs_init_sysfs(), all failure paths after kset_register() jump to
> put_kobject, which unconditionally releases both f2fs_tune and
> f2fs_feat.
>
> If kobject_init_and_add(&f2fs_feat, ...) fails, f2fs_tune has not been
> initialized yet, so calling kobject_put(&f2fs_tune) is invalid.
>
> [...]

Here is the summary with links:
- [f2fs-dev] f2fs: fix uninitialized kobject put in f2fs_init_sysfs()
https://git.kernel.org/jaegeuk/f2fs/c/b635f2ecdb5a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html