summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2019-10-16 13:51:50 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-21 10:57:33 +0100
commit5948e7ec07082555f5b5ef65dd8bc40d77e0ceca (patch)
tree8a101cbd60674eb8d5326c88b40b2a87903e990c /fs
parent33852a95011b6c9d68db9b4b52b07e0c7be37b93 (diff)
downloadlinux-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.c5
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,