Skip to content

Commit 9e4bc4b

Browse files
committed
Merge tag 'nfs-for-6.9-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Pull NFS client fixes from Trond Myklebust: - Fix an Oops in xs_tcp_tls_setup_socket - Fix an Oops due to missing error handling in nfs_net_init() * tag 'nfs-for-6.9-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: nfs: Handle error of rpc_proc_register() in nfs_net_init(). SUNRPC: add a missing rpc_stat for TCP TLS
2 parents 0a2e230 + 24457f1 commit 9e4bc4b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

fs/nfs/inode.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2429,7 +2429,12 @@ static int nfs_net_init(struct net *net)
24292429
struct nfs_net *nn = net_generic(net, nfs_net_id);
24302430

24312431
nfs_clients_init(net);
2432-
rpc_proc_register(net, &nn->rpcstats);
2432+
2433+
if (!rpc_proc_register(net, &nn->rpcstats)) {
2434+
nfs_clients_exit(net);
2435+
return -ENOMEM;
2436+
}
2437+
24332438
return nfs_fs_proc_net_init(net);
24342439
}
24352440

net/sunrpc/xprtsock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,6 +2664,7 @@ static void xs_tcp_tls_setup_socket(struct work_struct *work)
26642664
.xprtsec = {
26652665
.policy = RPC_XPRTSEC_NONE,
26662666
},
2667+
.stats = upper_clnt->cl_stats,
26672668
};
26682669
unsigned int pflags = current->flags;
26692670
struct rpc_clnt *lower_clnt;

0 commit comments

Comments
 (0)