]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/ecryptfs/netlink.c
[SCSI] sym53c8xx: fix resid calculation
[linux-2.6-omap-h63xx.git] / fs / ecryptfs / netlink.c
index 9aa345121e09cf2bf2f600259f95a03557f85de3..f638a698dc525350bc44054f567217d52c0fca71 100644 (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;
 }