From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 8F621FE5 for ; Fri, 7 Aug 2015 12:39:00 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 07 Aug 2015 03:38:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,629,1432623600"; d="scan'208";a="778772492" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga002.fm.intel.com with ESMTP; 07 Aug 2015 03:38:59 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.22]) by IRSMSX153.ger.corp.intel.com ([169.254.9.59]) with mapi id 14.03.0224.002; Fri, 7 Aug 2015 11:38:55 +0100 From: "Iremonger, Bernard" To: Tetsuya Mukawa , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] ethdev: Fix illegal access of rte_eth_dev_is_detachable() Thread-Index: AQHQ0PKKmCrOSnr0tE+1XscsDFaMmZ4AWB4A Date: Fri, 7 Aug 2015 10:38:55 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C219F377C1@IRSMSX108.ger.corp.intel.com> References: <1438939286-19641-1-git-send-email-mukawa@igel.co.jp> In-Reply-To: <1438939286-19641-1-git-send-email-mukawa@igel.co.jp> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] ethdev: Fix illegal access of rte_eth_dev_is_detachable() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2015 10:39:01 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Tetsuya Mukawa > Sent: Friday, August 7, 2015 10:21 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] ethdev: Fix illegal access of > rte_eth_dev_is_detachable() >=20 > To obtain detachable flag, pci_drv is accessed in > rte_eth_dev_is_detachable(). > But pci_drv is only valid if port is enabled. Not to cause illegal access= , add > rte_eth_dev_is_valid_port() before accessing. >=20 > Signed-off-by: Tetsuya Mukawa Acked-by: Bernard Iremonger