Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9832948 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Paul Mackerras
Browse files

[POWERPC] spufs: fail spu_create with invalid flags



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: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ba723fe2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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))