Skip to content
Snippets Groups Projects
Commit 56b31d1c authored by Al Viro's avatar Al Viro
Browse files

unexport sock_map_fd(), switch to sock_alloc_file()


Both modular callers of sock_map_fd() had been buggy; sctp one leaks
descriptor and file if copy_to_user() fails, 9p one shouldn't be
exposing file in the descriptor table at all.

Switch both to sock_alloc_file(), export it, unexport sock_map_fd() and
make it static.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 28407630
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment