From: NeilBrown Date: Mon, 15 Nov 2010 00:27:01 +0000 (+1100) Subject: sunrpc: svc_sock_names should hold ref to socket being closed. X-Git-Tag: v2.6.38-rc1~51^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3942302ea9e1dffa933021b20bf1642046e7641b;p=pandora-kernel.git sunrpc: svc_sock_names should hold ref to socket being closed. Currently svc_sock_names calls svc_close_xprt on a svc_sock to which it does not own a reference. As soon as svc_close_xprt sets XPT_CLOSE, the socket could be freed by a separate thread (though this is a very unlikely race). It is safer to hold a reference while calling svc_close_xprt. Signed-off-by: NeilBrown Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed