[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 <den@openvz.org> Tested-by: Alexey Dobriyan <adobriyan@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4f84d82f7a
commit
b7c6ba6eb1
@@ -164,7 +164,7 @@ void
|
||||
scsi_netlink_exit(void)
|
||||
{
|
||||
if (scsi_nl_sock) {
|
||||
sock_release(scsi_nl_sock->sk_socket);
|
||||
netlink_kernel_release(scsi_nl_sock);
|
||||
netlink_unregister_notifier(&scsi_netlink_notifier);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user