projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba723fe
)
[POWERPC] spufs: fail spu_create with invalid flags
author
arnd@arndb.de
<arnd@arndb.de>
Mon, 19 Jun 2006 18:33:34 +0000
(20:33 +0200)
committer
Paul 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/powerpc/platforms/cell/spufs/inode.c
b/arch/powerpc/platforms/cell/spufs/inode.c
index fed511a2b17fbf344259158397c936299e053317..1987697b23a0efeb19de551e99f133c32f841232 100644
(file)
--- 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))