Merge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee139...
[firefly-linux-kernel-4.4.55.git] / net / sunrpc / sunrpc_syms.c
index f632e476ab6c253eac9ace39fe8484c0dfc55553..e37fbed879568da535aa540656e7b7ace508e2cb 100644 (file)
@@ -97,6 +97,11 @@ init_sunrpc(void)
        err = register_rpc_pipefs();
        if (err)
                goto out4;
+
+       err = sunrpc_debugfs_init();
+       if (err)
+               goto out5;
+
 #if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
        rpc_register_sysctl();
 #endif
@@ -104,6 +109,8 @@ init_sunrpc(void)
        init_socket_xprt();     /* clnt sock transport */
        return 0;
 
+out5:
+       unregister_rpc_pipefs();
 out4:
        unregister_pernet_subsys(&sunrpc_net_ops);
 out3:
@@ -120,6 +127,7 @@ cleanup_sunrpc(void)
        rpcauth_remove_module();
        cleanup_socket_xprt();
        svc_cleanup_xprt_sock();
+       sunrpc_debugfs_exit();
        unregister_rpc_pipefs();
        rpc_destroy_mempool();
        unregister_pernet_subsys(&sunrpc_net_ops);