From: Arnd Bergmann Date: Wed, 4 Jan 2006 19:31:23 +0000 (+0100) Subject: [PATCH] spufs: check for proper file pointer in sys_spu_run X-Git-Tag: v2.6.16-rc1~666^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e80358ad8606382154d97165121602dfae213e4a;p=pandora-kernel.git [PATCH] spufs: check for proper file pointer in sys_spu_run Only checking for SPUFS_MAGIC is not reliable, because it might not be unique in theory. Worse than that, we accidentally allow spu_run to be performed on any file in spufs, not just those returned from spu_create as intended. Noticed by Al Viro. Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed