[NETNS]: Consolidate kernel netlink socket destruction.

Create a specific helper for netlink kernel socket disposal. This just
let the code look better and provides a ground for proper disposal
inside a namespace.

Signed-off-by: Denis V. Lunev <[email protected]>
Tested-by: Alexey Dobriyan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Denis V. Lunev 2008-01-28 14:41:19 -08:00 • committed by David S. Miller
commit b7c6ba6eb1
16 changed files with 34 additions and 26 deletions

View file

@ -237,7 +237,6 @@ out:
*/
void ecryptfs_release_netlink(void)
{
if (ecryptfs_nl_sock && ecryptfs_nl_sock->sk_socket)
sock_release(ecryptfs_nl_sock->sk_socket);
netlink_kernel_release(ecryptfs_nl_sock);
ecryptfs_nl_sock = NULL;
}