From: Long Li Date: Wed, 16 Oct 2019 20:51:50 +0000 (-0700) Subject: cifs: Don't display RDMA transport on reconnect X-Git-Tag: v5.10.7~3781^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14cc639c17ab0b6671526a7459087352507609e4;p=platform%2Fkernel%2Flinux-rpi.git 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 Cc: stable@vger.kernel.org Signed-off-by: Steve French --- diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 0b4eee3..efb2928 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,