diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-21 09:40:46 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-26 21:08:52 -0400 |
commit | ab72a7028c0cc22731dc60beceb595b321d1cdb9 (patch) | |
tree | 0f9e4a379876a614da462ba06be41b01e8b6795d /kernel/events/core.c | |
parent | 5b249b1b07c42c61d0c53b8ab4fad026e39a9be9 (diff) |
events: don't use get_unused_fd_flags() when get_unused_fd() will do
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/events/core.c')
-rw-r--r-- | kernel/events/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index 7fee567153f0..2bd199bfaef8 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -6264,7 +6264,7 @@ SYSCALL_DEFINE5(perf_event_open, | |||
6264 | if ((flags & PERF_FLAG_PID_CGROUP) && (pid == -1 || cpu == -1)) | 6264 | if ((flags & PERF_FLAG_PID_CGROUP) && (pid == -1 || cpu == -1)) |
6265 | return -EINVAL; | 6265 | return -EINVAL; |
6266 | 6266 | ||
6267 | event_fd = get_unused_fd_flags(O_RDWR); | 6267 | event_fd = get_unused_fd(); |
6268 | if (event_fd < 0) | 6268 | if (event_fd < 0) |
6269 | return event_fd; | 6269 | return event_fd; |
6270 | 6270 | ||