Fix racy use of anon_inode_getfd() in perf_event.c
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 26 May 2010 21:40:29 +0000 (17:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 28 May 2010 02:03:08 +0000 (22:03 -0400)
once anon_inode_getfd() is called, you can't expect *anything* about
struct file that descriptor points to - another thread might be doing
whatever it likes with descriptor table at that point.

Cc: stable <stable@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

No differences found