diff options
-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 49c87769b1f8..c23617c6baf3 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, | |||
69 | if (!IS_ERR(tmp)) { | 69 | if (!IS_ERR(tmp)) { |
70 | struct nameidata nd; | 70 | struct nameidata nd; |
71 | 71 | ||
72 | ret = path_lookup(tmp, LOOKUP_PARENT| | 72 | ret = path_lookup(tmp, LOOKUP_PARENT, &nd); |
73 | LOOKUP_OPEN|LOOKUP_CREATE, &nd); | ||
74 | if (!ret) { | 73 | if (!ret) { |
74 | nd.flags |= LOOKUP_OPEN | LOOKUP_CREATE; | ||
75 | ret = spufs_create(&nd, flags, mode, neighbor); | 75 | ret = spufs_create(&nd, flags, mode, neighbor); |
76 | path_put(&nd.path); | 76 | path_put(&nd.path); |
77 | } | 77 | } |