From: Al Viro Date: Sun, 3 Aug 2008 02:40:42 +0000 (-0400) Subject: [PATCH] don't pass bogus flags to LOOKUP_PARENT lookup in spufs X-Git-Tag: v2.6.28-rc1~24^2~36 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2c552d81363e0dac66d478046cc8a3948a67eae9;p=linux-2.6-omap-h63xx.git [PATCH] don't pass bogus flags to LOOKUP_PARENT lookup in spufs Signed-off-by: Al Viro --- 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); }