Skip to content

Commit 2272905

Browse files
CheezeCakempe
authored andcommitted
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: d2e0981 ("vfs: Convert spufs to use the new mount API") Signed-off-by: Emmanuel Nicolet <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7fe4e11 commit 2272905

File tree

1 file changed

+1
-0
lines changed
  • arch/powerpc/platforms/cell/spufs

1 file changed

+1
-0
lines changed

arch/powerpc/platforms/cell/spufs/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ static int spufs_init_fs_context(struct fs_context *fc)
761761
ctx->gid = current_gid();
762762
ctx->mode = 0755;
763763

764+
fc->fs_private = ctx;
764765
fc->s_fs_info = sbi;
765766
fc->ops = &spufs_context_ops;
766767
return 0;

0 commit comments

Comments
 (0)