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 42DC0A0A0C; Tue, 29 Jun 2021 20:10:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9ED89411D4; Tue, 29 Jun 2021 20:10:16 +0200 (CEST) Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) by mails.dpdk.org (Postfix) with ESMTP id 0CCB040E01; Tue, 29 Jun 2021 20:10:15 +0200 (CEST) Received: by mail-il1-f180.google.com with SMTP id t12so56405ile.13; Tue, 29 Jun 2021 11:10:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+laC5V1Y0TPIHoieySchicYofDQs5oJoG3Kdj81NDv4=; b=kZI+gbwQGUCaTFbiYMA1r00kzdCYngkDxOYP781vkiVpo5M7JTzDf3OTii74ELdcSL SAd9CUh9M3lXU4BID2VIWtBmYtTX5Zlqwo8Nel9w3Ft4IT4x3q06rd9zK9d2ogZKtTr4 GWEu1uQNRIKGz/gl+MYN/dlNLq5H9W5HYeyEzk2QlLIqqiKEGzymYGzbndsQOLrUnLFc 6HWD4yooe5+/7eDu9UMKZW1+0P4yt5IHozYrox7qMHT/vIRa7Y6uKq0RVL2Zlu27QGD0 7jbw4jTWrghwhdCIvC5e2GmT9I9Mjn24bFh/t62ot4TzwogXWYDqfMVtPICk76bmYcVb lTsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+laC5V1Y0TPIHoieySchicYofDQs5oJoG3Kdj81NDv4=; b=czRcY0z4tCJpGRO93powuWyp/c65fMskyMP9ZhKQonF1s8/y4e8OIyWiwRkVld8F5Y RKrxCN2c+oKMq3xaE0ejeknE/hlOixdIXTftUsT54c0xuZqCRFgBXwl5QIhmJYLROYMC vpPYNOgNDoXshx5N72fwC0pJV2RctDwkWwwy+586/a4MhMUQmGXF5rduxsQ4hubXUQ/B ynqcH9WrjBXwaL9wk2EitR6TUNga4X+hBQDjRoxV2QAsGxmwsl/RBBAx2cJRLg4SdZRS JAIWrIPQGoYnGu3VZ74CXb9SwgPvJ635sR2XqLWxcmKNdPj7QX9VRT3PaTAcyqePrM/S kygA== X-Gm-Message-State: AOAM5316zzpE5pm0e+8IkQntyqJIMTmt6WFoWm5jAiaRj1gNNdU75Cl2 EiwRRlCqhK0CKQ+VkjgQ0LpA8S6BIkhht8ugyAw= X-Google-Smtp-Source: ABdhPJw9Xx/aab9HR22Vks6RDGbKtoWSkeh6aUtQkXHMT5CWc//oGLBMrioP+XIbXJf1hG32O/rYIw0VYMsJY/34hYQ= X-Received: by 2002:a92:1310:: with SMTP id 16mr24515615ilt.60.1624990214303; Tue, 29 Jun 2021 11:10:14 -0700 (PDT) MIME-Version: 1.0 References: <20210524085935.16403-1-thierry.herbelot@6wind.com> In-Reply-To: <20210524085935.16403-1-thierry.herbelot@6wind.com> From: Jerin Jacob Date: Tue, 29 Jun 2021 23:39:48 +0530 Message-ID: To: Thierry Herbelot Cc: dpdk-dev , Thomas Monjalon , dpdk stable , Nalla Pradeep , Radha Mohan Chintakuntla , Veerasenareddy Burru Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] net/octeontx_ep: do not use a NULL Pointer X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, May 24, 2021 at 2:30 PM Thierry Herbelot wrote: > > 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 Changed the git log to following and Applied to dpdk-next-net-mrvl/for-next-net. Thanks Author: Thierry Herbelot Date: Mon May 24 10:59:35 2021 +0200 net/octeontx_ep: fix null pointer access 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 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 >