diff options
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/syscalls.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/syscalls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/syscalls.c b/arch/powerpc/platforms/cell/spufs/syscalls.c index 17a2b51c94bc..0c2896ac9518 100644 --- a/arch/powerpc/platforms/cell/spufs/syscalls.c +++ b/arch/powerpc/platforms/cell/spufs/syscalls.c | |||
@@ -39,8 +39,9 @@ long do_spu_run(struct file *filp, __u32 __user *unpc, __u32 __user *ustatus) | |||
39 | if (get_user(npc, unpc) || get_user(status, ustatus)) | 39 | if (get_user(npc, unpc) || get_user(status, ustatus)) |
40 | goto out; | 40 | goto out; |
41 | 41 | ||
42 | /* check if this file was created by spu_create */ | ||
42 | ret = -EINVAL; | 43 | ret = -EINVAL; |
43 | if (filp->f_vfsmnt->mnt_sb->s_magic != SPUFS_MAGIC) | 44 | if (filp->f_op != &spufs_context_fops) |
44 | goto out; | 45 | goto out; |
45 | 46 | ||
46 | i = SPUFS_I(filp->f_dentry->d_inode); | 47 | i = SPUFS_I(filp->f_dentry->d_inode); |