diff options
author | Long Li <longli@microsoft.com> | 2019-10-16 23:51:50 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-11-25 10:14:14 +0300 |
commit | 14cc639c17ab0b6671526a7459087352507609e4 (patch) | |
tree | d9ea90f858e5ebda64c7ab0471c2c8f1efdfc8ee /fs/cifs/cifs_debug.c | |
parent | f28a2e5ebc54248757f5baf5b7ff1d4eb80ebae7 (diff) | |
download | linux-14cc639c17ab0b6671526a7459087352507609e4.tar.xz |
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: Long Li <longli@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 0b4eee3bed66..efb2928ff6c8 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -256,6 +256,11 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) if (!server->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 " "transport status: %x", server->smbd_conn->protocol, |