]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spufs: fix a leak on spufs_new_file() failure
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 9 Mar 2025 00:26:31 +0000 (19:26 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 13 Mar 2025 02:13:27 +0000 (22:13 -0400)
commitd1ca8698ca1332625d83ea0d753747be66f9906d
tree170cbab605d7a9ab3252d0d6416b712255b480c2
parent80e54e84911a923c40d7bee33a34c1b4be148d7a
spufs: fix a leak on spufs_new_file() failure

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 path"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/powerpc/platforms/cell/spufs/inode.c