From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0E4DD1B2B8 for ; Sat, 21 Oct 2017 02:26:24 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2017 17:26:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,408,1503385200"; d="scan'208";a="1027566339" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.241.224.220]) ([10.241.224.220]) by orsmga003.jf.intel.com with ESMTP; 20 Oct 2017 17:26:23 -0700 To: Tomasz Duszynski , dev@dpdk.org References: <1508154348-10988-1-git-send-email-tdu@semihalf.com> <1508154348-10988-2-git-send-email-tdu@semihalf.com> From: Ferruh Yigit Message-ID: Date: Fri, 20 Oct 2017 17:26:23 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <1508154348-10988-2-git-send-email-tdu@semihalf.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/2] examples/kni: check if pci_dev isn't NULL before using it X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Oct 2017 00:26:25 -0000 On 10/16/2017 4:45 AM, Tomasz Duszynski wrote: > Since virtual devices, i.e mrvl net pmd, do not touch pci_dev > dereferencing it will cause segmentation fault as by default > it's set to NULL in rte_eth_dev_info_get(). > > Signed-off-by: Tomasz Duszynski Acked-by: Ferruh Yigit