]> err.no Git - linux-2.6/commitdiff
[POWERPC] spufs: fail spu_create with invalid flags
authorarnd@arndb.de <arnd@arndb.de>
Mon, 19 Jun 2006 18:33:34 +0000 (20:33 +0200)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Jun 2006 05:01:32 +0000 (15:01 +1000)
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>
arch/powerpc/platforms/cell/spufs/inode.c

index fed511a2b17fbf344259158397c936299e053317..1987697b23a0efeb19de551e99f133c32f841232 100644 (file)
@@ -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))