aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spufs/inode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c
index 7150730e2ff1..01c4805986f2 100644
--- a/arch/powerpc/platforms/cell/spufs/inode.c
+++ b/arch/powerpc/platforms/cell/spufs/inode.c
@@ -600,6 +600,10 @@ spufs_create_root(struct super_block *sb, void *data)
600 struct inode *inode; 600 struct inode *inode;
601 int ret; 601 int ret;
602 602
603 ret = -ENODEV;
604 if (!spu_management_ops)
605 goto out;
606
603 ret = -ENOMEM; 607 ret = -ENOMEM;
604 inode = spufs_new_inode(sb, S_IFDIR | 0775); 608 inode = spufs_new_inode(sb, S_IFDIR | 0775);
605 if (!inode) 609 if (!inode)