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 1DF49A0A02; Tue, 27 Apr 2021 17:23:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81561410FD; Tue, 27 Apr 2021 17:23:45 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 3323D410D8 for ; Tue, 27 Apr 2021 17:23:43 +0200 (CEST) IronPort-SDR: 3r8mL2aX/s4/ifGjj/RviRzeR/DBP7K+KBIg79xwTiNNK56Bt5K7KtDjjds5ro++Ywq4vR8TKh bezo9CY3+TlA== X-IronPort-AV: E=McAfee;i="6200,9189,9967"; a="176647194" X-IronPort-AV: E=Sophos;i="5.82,254,1613462400"; d="scan'208";a="176647194" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 08:23:35 -0700 IronPort-SDR: IuNAzOX39nuYRjyAn+opYLPgyGLrPjGG8eELMVnt7dSjl6DKs1xgwdZNjoasTa1snhEpVTAPnH Bf2iJKpmqfjg== X-IronPort-AV: E=Sophos;i="5.82,254,1613462400"; d="scan'208";a="457686174" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.221.231]) ([10.213.221.231]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 08:23:34 -0700 To: "Min Hu (Connor)" , dev@dpdk.org Cc: andrew.rybchenko@oktetlabs.ru References: <1619355496-15057-1-git-send-email-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy Message-ID: Date: Tue, 27 Apr 2021 16:23:31 +0100 MIME-Version: 1.0 In-Reply-To: <1619355496-15057-1-git-send-email-humin29@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] common/sfc_efx/base: fix the problem of using 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 4/25/2021 1:58 PM, Min Hu (Connor) wrote: > From: HongBo Zheng > > In function efx_pci_xilinx_cap_tbl_find, pointer entry_offsetp is used > before null pointer check, which may cause access to null pointer. > > This patch fix this problem. > > Fixes: ba9568b8b4b7 ("common/sfc_efx/base: add Xilinx capabilities table lookup") > Cc: stable@dpdk.org > > Signed-off-by: HongBo Zheng > Signed-off-by: Min Hu (Connor) Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.