diff options
author | Long Li <longli@microsoft.com> | 2019-10-16 13:51:50 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 10:57:33 +0100 |
commit | 5948e7ec07082555f5b5ef65dd8bc40d77e0ceca (patch) | |
tree | 8a101cbd60674eb8d5326c88b40b2a87903e990c /fs | |
parent | 33852a95011b6c9d68db9b4b52b07e0c7be37b93 (diff) | |
download | linux-stable-5948e7ec07082555f5b5ef65dd8bc40d77e0ceca.tar.gz linux-stable-5948e7ec07082555f5b5ef65dd8bc40d77e0ceca.tar.bz2 linux-stable-5948e7ec07082555f5b5ef65dd8bc40d77e0ceca.zip |
cifs: Don't display RDMA transport on reconnect
commit 14cc639c17ab0b6671526a7459087352507609e4 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-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 06576797cf31..a85aeff90df8 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -210,6 +210,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, |