Re: [PATCH 1/4] spufs: fix a leak on spufs_new_file() failure

2025-03-13 Thread Christian Brauner
On Thu, Mar 13, 2025 at 04:28:15AM +, Al Viro wrote: > It's called from spufs_fill_dir(), and caller of that will do > spufs_rmdir() in case of failure. That does remove everything > we'd managed to create, but... the problem dentry is still > negative. IOW, it needs to be explicitly dropped.

[PATCH 1/4] spufs: fix a leak on spufs_new_file() failure

2025-03-12 Thread Al Viro
It's called from spufs_fill_dir(), and caller of that will do spufs_rmdir() in case of failure. That does remove everything we'd managed to create, but... the problem dentry is still negative. IOW, it needs to be explicitly dropped. Fixes: 3f51dd91c807 "[PATCH] spufs: fix spufs_fill_dir error pa