From: Ying Xue Date: Mon, 16 Mar 2015 10:19:12 +0000 (+0800) Subject: net: kernel socket should be released in init_net namespace X-Git-Tag: omap-for-v4.2/o2_dc~131^2~229 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c243d7e20996254f89c28d4838b5feca735c030d;p=pandora-kernel.git net: kernel socket should be released in init_net namespace Creating a kernel socket with sock_create_kern() happens in "init_net" namespace, however, releasing it with sk_release_kernel() occurs in the current namespace which may be different with "init_net" namespace. Therefore, we should guarantee that the namespace in which a kernel socket is created is same as the socket is created. Signed-off-by: Ying Xue Signed-off-by: David S. Miller --- Reading git-diff-tree failed