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: d2e0981c3b
("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
This commit is contained in:
parent
7fe4e1176d
commit
2272905a45
|
@ -761,6 +761,7 @@ static int spufs_init_fs_context(struct fs_context *fc)
|
|||
ctx->gid = current_gid();
|
||||
ctx->mode = 0755;
|
||||
|
||||
fc->fs_private = ctx;
|
||||
fc->s_fs_info = sbi;
|
||||
fc->ops = &spufs_context_ops;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue