spufs: fix a leak in spufs_create_context()

[ Upstream commit 0f5cce3fc5 ]

Leak fixes back in 2008 missed one case - if we are trying to set affinity
and spufs_mkdir() fails, we need to drop the reference to neighbor.

Fixes: 58119068cb "[POWERPC] spufs: Fix memory leak on SPU affinity"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Al Viro 2025-03-12 19:38:28 -04:00 • committed by Greg Kroah-Hartman
commit d04600f435