From: Al Viro Date: Sat, 18 Aug 2012 04:25:51 +0000 (-0400) Subject: unexport sock_map_fd(), switch to sock_alloc_file() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~36^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56b31d1c9f1e6a3ad92e7bfe252721e05d92b285;p=pandora-kernel.git 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: Al Viro --- Reading git-diff-tree failed