From: Al Viro Date: Tue, 21 Aug 2012 13:40:46 +0000 (-0400) Subject: events: don't use get_unused_fd_flags() when get_unused_fd() will do X-Git-Tag: next-20120823~79^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2b0dcf9ab35fe7305de0514ecc19568a30f9c429;p=karo-tx-linux.git events: don't use get_unused_fd_flags() when get_unused_fd() will do Signed-off-by: Al Viro --- diff --git a/kernel/events/core.c b/kernel/events/core.c index efef4282b8e8..647eb2bc2ebb 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;