Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2280744ybl; Thu, 19 Dec 2019 10:57:07 -0800 (PST) X-Google-Smtp-Source: APXvYqyASy36eRt+K0h7vWVB7E0QYy7xM7R0x/n44+KFD+eZ8z7tjlt5lJxFqFFuvCBTdBiEKUwP X-Received: by 2002:a05:6830:1cc9:: with SMTP id p9mr2859604otg.223.1576781826836; Thu, 19 Dec 2019 10:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576781826; cv=none; d=google.com; s=arc-20160816; b=LuEqnuT6Uv4oczJFnir9+ksmZYN8LFJ4eHchLTICLOeh5oHh/XiN86zsR/dJ4tlxd/ ++3XKjrNU/dLpzPj0h7xZbFWUXApPYzogSbCm1zVADB42JdGlcf3/NyX7jG+LGrCC4+s IDq1q0+jGbCO/GPg+L/xeNihsOq8NG0k2K9C665zvRoKuJW7Hxkgx2x7bh4F4Lq61nUu ia1dQfuLu7tS3wcgJAapioabm6GpB3GXYfRvOQCnrM/KGlmmm82IQFOWt6BLodwyIuZN b0aQeKuHA049ogfnRS7mY8MEWiiZR2/AqBLuGUkuLtG0/2dMUkQtpaSi1cVoqN+1DT2u TYRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PTLcA76R8u4ug46bGbAi2VScD3F46SbhmavkCwsNuK8=; b=Rzs7YcIdHnKh/cOVSG4StAlzSRlEAu0NHpAECKOpMrOLpdTw9b+YvHaba3ce+xy/ma h7+/4244iP1aStTJaLXOUcndUNKWFK9GJ9Ebtu6YRVB57IsubVF/KWEpv+cOwOU92DZg 9tZuwdtPsIkVQQDJCBwpfAmu2/xoe6jhYo+pSm794D1HFXBPINMIqXfvoH/BEJZ5DNsi 2+UGymP38rP/svwleblrA4V2AKjKpruzr0Xi5taoaupHns3kBTLyj8fK+QoUFGcPrWtL e06LcrEuf37RbZs0Td9YQpmYlQ/QRGQQol/qJD2xLyqm9LRR6em27/tXscoMtpkuHq1+ PAJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P5XRWXWc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si3792887otm.244.2019.12.19.10.56.55; Thu, 19 Dec 2019 10:57:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P5XRWXWc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730586AbfLSSy4 (ORCPT + 99 others); Thu, 19 Dec 2019 13:54:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:50428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729702AbfLSSyu (ORCPT ); Thu, 19 Dec 2019 13:54:50 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5E95227BF; Thu, 19 Dec 2019 18:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576781690; bh=TRjs8bxBQvu1ekSCCmNtZ0zJVUQ5t1Naq2n7iuyAVjM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P5XRWXWcekJIQFacQgjJC+EUf0tvE0x4J6HPiOMDm/vhXvBaLA+0ILMPCrm6C4hGn 49M08XZPLxTg0BaaEzW73KBcVR2gjI7pMgTlTzpStF42i4ezRoB7cIJW2YALGlJQmS UXMjyGQThEcSJQMK3Td1/Y/bw0KVSZHPi+QdzdsY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Long Li , Steve French Subject: [PATCH 5.4 33/80] cifs: Dont display RDMA transport on reconnect Date: Thu, 19 Dec 2019 19:34:25 +0100 Message-Id: <20191219183106.105637638@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191219183031.278083125@linuxfoundation.org> References: <20191219183031.278083125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Long Li commit 14cc639c17ab0b6671526a7459087352507609e4 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- fs/cifs/cifs_debug.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -256,6 +256,11 @@ static int cifs_debug_data_proc_show(str 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,