From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 29F7DA0096 for ; Wed, 5 Jun 2019 18:46:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CDBA21B9B0; Wed, 5 Jun 2019 18:46:43 +0200 (CEST) Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id 2753E1B995 for ; Wed, 5 Jun 2019 18:46:42 +0200 (CEST) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (uk.solarflare.com [193.34.186.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us3.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 15FD76C00DD; Wed, 5 Jun 2019 16:46:39 +0000 (UTC) Received: from [192.168.38.17] (91.220.146.112) by ukex01.SolarFlarecom.com (10.17.10.4) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 5 Jun 2019 17:46:33 +0100 To: David Marchand , CC: , Thomas Monjalon , "Ferruh Yigit" References: <1558080908-25951-1-git-send-email-david.marchand@redhat.com> From: Andrew Rybchenko Message-ID: Date: Wed, 5 Jun 2019 19:46:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1558080908-25951-1-git-send-email-david.marchand@redhat.com> Content-Language: en-GB X-Originating-IP: [91.220.146.112] X-ClientProxiedBy: ocex03.SolarFlarecom.com (10.20.40.36) To ukex01.SolarFlarecom.com (10.17.10.4) X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24658.003 X-TM-AS-Result: No-0.967900-8.000000-10 X-TMASE-MatchedRID: oTBA/+sdKaa8rRvefcjeTbDT1dbmL1eM69aS+7/zbj+iUP5F9sCEMNAO OSAF0cTNBdUvQ/bh/PcidYoCHucQNYCBxVj6KSEwtgyUiC29Qd5Iq1BEJ6pINAeLCIX046iBzEV DGnc+EfJ5QYjFiDClc9AAI+C3I6/FI2DLDezBgxjhYA5szVVSqCXdp9l6EkRZaTyOjZopjNR3qP 6IaYaYg4RymkpGLXQ9HcN4x+ltYL2kwhnxbg1t+eQYBHVKqgDUfS0Ip2eEHny+qryzYw2E8MWxr 5jPZ4+TKrauXd3MZDWZLpin7hl478qoYoQccrilZP+TiGO837rrm+NIyKyeJ6ogg1bGSre5kJts s1jmSYtvhJg5r1R1uhAkLc+JrByLf7z4JAJ+wqPtRrYDtTZPibxonH1x54ZS5hsVmLMWS30mLdC 4AdhtNYmjosHZ7eIniOcxOu8mckOZ93QdQacVBJt6SEDiCexopzaVCi5Krq++68HqACCvKA== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--0.967900-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24658.003 X-MDID: 1559753200-xH_QTrXicBn1 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] ethdev: add a check on mempool during rxq setup 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 5/17/19 11:15 AM, David Marchand wrote: > We currently have no check on the mempool pointer passed to > rte_eth_rx_queue_setup. > Let's avoid a plain crash when dereferencing it. > > Suggested-by: Jens Freimann > Signed-off-by: David Marchand Acked-by: Andrew Rybchenko