mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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:
parent
4f84d82f7a
commit
b7c6ba6eb1
16 changed files with 34 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue