spufs: fix a crash in spufs_create_root()
authorEmmanuel Nicolet <emmanuel.nicolet@gmail.com>
Tue, 8 Oct 2019 14:13:42 +0000 (16:13 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 11 Oct 2019 05:57:41 +0000 (16:57 +1100)
commit2272905a4580f26630f7d652cc33935b59f96d4c
treeba461e213c01761a3efd96c4ef191eb98f35185d
parent7fe4e1176dfe47a243d8edd98d26abd11f91b042
spufs: fix a crash in spufs_create_root()

The spu_fs_context was not set in fc->fs_private, this caused a crash
when accessing ctx->mode in spufs_create_root().

Fixes: d2e0981c3b9a ("vfs: Convert spufs to use the new mount API")
Signed-off-by: Emmanuel Nicolet <emmanuel.nicolet@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20191008141342.GA266797@gmail.com
arch/powerpc/platforms/cell/spufs/inode.c