summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorarnd@arndb.de <arnd@arndb.de>2006-06-19 18:33:34 (GMT)
committerPaul Mackerras <paulus@samba.org>2006-06-21 05:01:32 (GMT)
commitc983294872ebccd4aacf1b8dd694ac2170feadc3 (patch)
tree529c3bc88a9ff10536ffdbf0936c3af2f193bac6 /arch
parentba723fe2b2facc8d45b53701fec39aa429596759 (diff)
downloadlinux-fsl-qoriq-c983294872ebccd4aacf1b8dd694ac2170feadc3.tar.xz
[POWERPC] spufs: fail spu_create with invalid flags
At this time, all flags are invalid. Since we are planning to actually add valid flags in the future, we better check if any were passed by the user. Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
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 fed511a..1987697 100644
--- a/arch/powerpc/platforms/cell/spufs/inode.c
+++ b/arch/powerpc/platforms/cell/spufs/inode.c
@@ -304,6 +304,10 @@ long spufs_create_thread(struct nameidata *nd,
nd->dentry != nd->dentry->d_sb->s_root)
goto out;
+ /* all flags are reserved */
+ if (flags)
+ goto out;
+
dentry = lookup_create(nd, 1);
ret = PTR_ERR(dentry);
if (IS_ERR(dentry))