|
@@ -616,7 +616,7 @@ static int rds_tcp_init(void)
|
|
|
|
|
|
ret = rds_tcp_recv_init();
|
|
ret = rds_tcp_recv_init();
|
|
if (ret)
|
|
if (ret)
|
|
- goto out_slab;
|
|
|
|
|
|
+ goto out_pernet;
|
|
|
|
|
|
ret = rds_trans_register(&rds_tcp_transport);
|
|
ret = rds_trans_register(&rds_tcp_transport);
|
|
if (ret)
|
|
if (ret)
|
|
@@ -628,8 +628,9 @@ static int rds_tcp_init(void)
|
|
|
|
|
|
out_recv:
|
|
out_recv:
|
|
rds_tcp_recv_exit();
|
|
rds_tcp_recv_exit();
|
|
-out_slab:
|
|
|
|
|
|
+out_pernet:
|
|
unregister_pernet_subsys(&rds_tcp_net_ops);
|
|
unregister_pernet_subsys(&rds_tcp_net_ops);
|
|
|
|
+out_slab:
|
|
kmem_cache_destroy(rds_tcp_conn_slab);
|
|
kmem_cache_destroy(rds_tcp_conn_slab);
|
|
out:
|
|
out:
|
|
return ret;
|
|
return ret;
|