Skip to content

Commit

Permalink
ia64: replace get_unused_fd() with get_unused_fd_flags(0)
Browse files Browse the repository at this point in the history
This patch replaces calls to get_unused_fd() with equivalent call to
get_unused_fd_flags(0) to preserve current behavor for existing code.

In a further patch, get_unused_fd() will be removed so that new code start
using get_unused_fd_flags(), with the hope O_CLOEXEC could be used, either
by default or choosen by userspace.

Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Yann Droneaud authored and Linus Torvalds committed Dec 11, 2014
1 parent 7c8bd23 commit aeb682d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ia64/kernel/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ pfm_context_create(pfm_context_t *ctx, void *arg, int count, struct pt_regs *reg

ret = -ENOMEM;

fd = get_unused_fd();
fd = get_unused_fd_flags(0);
if (fd < 0)
return fd;

Expand Down

0 comments on commit aeb682d

Please sign in to comment.