Skip to content
Commit c921b40d authored by Al Viro's avatar Al Viro
Browse files

autofs4: don't open-code fd_install()



The only difference between autofs_dev_ioctl_fd_install() and
fd_install() is __set_close_on_exec() done by the latter.  Just
use get_unused_fd_flags(O_CLOEXEC) to allocate the descriptor
and be done with that...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 1a7bd226
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment