From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B77A7A0547 for ; Mon, 24 May 2021 11:00:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B1F564003C; Mon, 24 May 2021 11:00:11 +0200 (CEST) Received: from proxy.6wind.com (host.78.145.23.62.rev.coltfrance.com [62.23.145.78]) by mails.dpdk.org (Postfix) with ESMTP id 333E64003C; Mon, 24 May 2021 11:00:10 +0200 (CEST) Received: from localhost (unknown [10.16.0.39]) by proxy.6wind.com (Postfix) with ESMTP id 1CB619B47A8; Mon, 24 May 2021 11:00:10 +0200 (CEST) From: Thierry Herbelot To: dev@dpdk.org Cc: Thierry Herbelot , Thomas Monjalon , stable@dpdk.org, Nalla Pradeep , Radha Mohan Chintakuntla , Veerasenareddy Burru Date: Mon, 24 May 2021 10:59:35 +0200 Message-Id: <20210524085935.16403-1-thierry.herbelot@6wind.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH] net/octeontx_ep: do not use a NULL Pointer X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" mz is known to be NULL: do not use it to print a memzone name. Fixes: 242e18c056890 ("net/octeontx_ep: add Rx queue setup and release") Cc: stable@dpdk.org Cc: Nalla Pradeep Cc: Radha Mohan Chintakuntla Cc: Veerasenareddy Burru Signed-off-by: Thierry Herbelot --- drivers/net/octeontx_ep/otx_ep_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/octeontx_ep/otx_ep_rxtx.c b/drivers/net/octeontx_ep/otx_ep_rxtx.c index 28ff74d2d5b0..a7d433547e36 100644 --- a/drivers/net/octeontx_ep/otx_ep_rxtx.c +++ b/drivers/net/octeontx_ep/otx_ep_rxtx.c @@ -27,7 +27,7 @@ otx_ep_dmazone_free(const struct rte_memzone *mz) int ret = 0; if (mz == NULL) { - otx_ep_err("Memzone %s : NULL\n", mz->name); + otx_ep_err("Memzone: NULL\n"); return; } -- 2.29.2