diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-08-02 22:40:42 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-10-23 05:12:55 -0400 |
commit | 2c552d81363e0dac66d478046cc8a3948a67eae9 (patch) | |
tree | 34b4b42b73eeb327bd128cade5726b121d889069 | |
parent | 8737f3a1b3c6a38a2a064552d4536633a5a16cd3 (diff) | |
download | linux-3.10-2c552d81363e0dac66d478046cc8a3948a67eae9.tar.gz linux-3.10-2c552d81363e0dac66d478046cc8a3948a67eae9.tar.bz2 linux-3.10-2c552d81363e0dac66d478046cc8a3948a67eae9.zip |
[PATCH] don't pass bogus flags to LOOKUP_PARENT lookup in spufs
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/syscalls.c b/arch/powerpc/platforms/cell/spufs/syscalls.c index 49c87769b1f..c23617c6baf 100644 --- a/arch/powerpc/platforms/cell/spufs/syscalls.c +++ b/arch/powerpc/platforms/cell/spufs/syscalls.c @@ -69,9 +69,9 @@ static long do_spu_create(const char __user *pathname, unsigned int flags, if (!IS_ERR(tmp)) { struct nameidata nd; - ret = path_lookup(tmp, LOOKUP_PARENT| - LOOKUP_OPEN|LOOKUP_CREATE, &nd); + ret = path_lookup(tmp, LOOKUP_PARENT, &nd); if (!ret) { + nd.flags |= LOOKUP_OPEN | LOOKUP_CREATE; ret = spufs_create(&nd, flags, mode, neighbor); path_put(&nd.path); } |