diff options
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index b4e41dd4d0f6..873bf00d51a2 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -1868,6 +1868,10 @@ static int nfs_server_list_show(struct seq_file *m, void *v) | |||
1868 | /* display one transport per line on subsequent lines */ | 1868 | /* display one transport per line on subsequent lines */ |
1869 | clp = list_entry(v, struct nfs_client, cl_share_link); | 1869 | clp = list_entry(v, struct nfs_client, cl_share_link); |
1870 | 1870 | ||
1871 | /* Check if the client is initialized */ | ||
1872 | if (clp->cl_cons_state != NFS_CS_READY) | ||
1873 | return 0; | ||
1874 | |||
1871 | seq_printf(m, "v%u %s %s %3d %s\n", | 1875 | seq_printf(m, "v%u %s %s %3d %s\n", |
1872 | clp->rpc_ops->version, | 1876 | clp->rpc_ops->version, |
1873 | rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_ADDR), | 1877 | rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_HEX_ADDR), |