aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/af_rxrpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rxrpc/af_rxrpc.c')
-rw-r--r--net/rxrpc/af_rxrpc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index 9d935fa5a2a9..e45e94ca030f 100644
--- a/net/rxrpc/af_rxrpc.c
+++ b/net/rxrpc/af_rxrpc.c
@@ -806,6 +806,12 @@ static int __init af_rxrpc_init(void)
806 goto error_work_queue; 806 goto error_work_queue;
807 } 807 }
808 808
809 ret = rxrpc_init_security();
810 if (ret < 0) {
811 printk(KERN_CRIT "RxRPC: Cannot initialise security\n");
812 goto error_security;
813 }
814
809 ret = proto_register(&rxrpc_proto, 1); 815 ret = proto_register(&rxrpc_proto, 1);
810 if (ret < 0) { 816 if (ret < 0) {
811 printk(KERN_CRIT "RxRPC: Cannot register protocol\n"); 817 printk(KERN_CRIT "RxRPC: Cannot register protocol\n");
@@ -853,6 +859,8 @@ error_sock:
853 proto_unregister(&rxrpc_proto); 859 proto_unregister(&rxrpc_proto);
854error_proto: 860error_proto:
855 destroy_workqueue(rxrpc_workqueue); 861 destroy_workqueue(rxrpc_workqueue);
862error_security:
863 rxrpc_exit_security();
856error_work_queue: 864error_work_queue:
857 kmem_cache_destroy(rxrpc_call_jar); 865 kmem_cache_destroy(rxrpc_call_jar);
858error_call_jar: 866error_call_jar:
@@ -883,6 +891,7 @@ static void __exit af_rxrpc_exit(void)
883 remove_proc_entry("rxrpc_conns", init_net.proc_net); 891 remove_proc_entry("rxrpc_conns", init_net.proc_net);
884 remove_proc_entry("rxrpc_calls", init_net.proc_net); 892 remove_proc_entry("rxrpc_calls", init_net.proc_net);
885 destroy_workqueue(rxrpc_workqueue); 893 destroy_workqueue(rxrpc_workqueue);
894 rxrpc_exit_security();
886 kmem_cache_destroy(rxrpc_call_jar); 895 kmem_cache_destroy(rxrpc_call_jar);
887 _leave(""); 896 _leave("");
888} 897}