aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs/netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ecryptfs/netlink.c')
-rw-r--r--fs/ecryptfs/netlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ecryptfs/netlink.c b/fs/ecryptfs/netlink.c
index 9aa345121e09..f638a698dc52 100644
--- a/fs/ecryptfs/netlink.c
+++ b/fs/ecryptfs/netlink.c
@@ -237,7 +237,6 @@ out:
237 */ 237 */
238void ecryptfs_release_netlink(void) 238void ecryptfs_release_netlink(void)
239{ 239{
240 if (ecryptfs_nl_sock && ecryptfs_nl_sock->sk_socket) 240 netlink_kernel_release(ecryptfs_nl_sock);
241 sock_release(ecryptfs_nl_sock->sk_socket);
242 ecryptfs_nl_sock = NULL; 241 ecryptfs_nl_sock = NULL;
243} 242}