Commit 14cc639c authored by Long Li's avatar Long Li Committed by Steve French

cifs: Don't display RDMA transport on reconnect

On reconnect, the transport data structure is NULL and its information is not
available.
Signed-off-by: default avatarLong Li <longli@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent f28a2e5e
...@@ -256,6 +256,11 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) ...@@ -256,6 +256,11 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
if (!server->rdma) if (!server->rdma)
goto skip_rdma; goto skip_rdma;
if (!server->smbd_conn) {
seq_printf(m, "\nSMBDirect transport not available");
goto skip_rdma;
}
seq_printf(m, "\nSMBDirect (in hex) protocol version: %x " seq_printf(m, "\nSMBDirect (in hex) protocol version: %x "
"transport status: %x", "transport status: %x",
server->smbd_conn->protocol, server->smbd_conn->protocol,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment