提交 ab72a702 编写于 作者: A Al Viro

events: don't use get_unused_fd_flags() when get_unused_fd() will do

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 5b249b1b
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册