aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 7150730e2ff..01c4805986f 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)