File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -2589,15 +2589,26 @@ EXPORT_SYMBOL_GPL(nfs_net_id);
2589
2589
static int nfs_net_init (struct net * net )
2590
2590
{
2591
2591
struct nfs_net * nn = net_generic (net , nfs_net_id );
2592
+ int err ;
2592
2593
2593
2594
nfs_clients_init (net );
2594
2595
2595
2596
if (!rpc_proc_register (net , & nn -> rpcstats )) {
2596
- nfs_clients_exit ( net ) ;
2597
- return - ENOMEM ;
2597
+ err = - ENOMEM ;
2598
+ goto err_proc_rpc ;
2598
2599
}
2599
2600
2600
- return nfs_fs_proc_net_init (net );
2601
+ err = nfs_fs_proc_net_init (net );
2602
+ if (err )
2603
+ goto err_proc_nfs ;
2604
+
2605
+ return 0 ;
2606
+
2607
+ err_proc_nfs :
2608
+ rpc_proc_unregister (net , "nfs" );
2609
+ err_proc_rpc :
2610
+ nfs_clients_exit (net );
2611
+ return err ;
2601
2612
}
2602
2613
2603
2614
static void nfs_net_exit (struct net * net )
You can’t perform that action at this time.
0 commit comments