From ab72a7028c0cc22731dc60beceb595b321d1cdb9 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Tue, 21 Aug 2012 09:40:46 -0400 Subject: [PATCH] events: don't use get_unused_fd_flags() when get_unused_fd() will do Signed-off-by: Al Viro --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, if ((flags & PERF_FLAG_PID_CGROUP) && (pid == -1 || cpu == -1)) return -EINVAL; - event_fd = get_unused_fd_flags(O_RDWR); + event_fd = get_unused_fd(); if (event_fd < 0) return event_fd; -- 2.39.5