From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 76A86A0471 for ; Wed, 17 Jul 2019 03:47:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DB9BA2C18; Wed, 17 Jul 2019 03:47:39 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 588BF2BF4; Wed, 17 Jul 2019 03:47:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jul 2019 18:47:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,272,1559545200"; d="scan'208";a="187455750" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 16 Jul 2019 18:47:37 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 16 Jul 2019 18:47:37 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 16 Jul 2019 18:47:36 -0700 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.232]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.240]) with mapi id 14.03.0439.000; Wed, 17 Jul 2019 09:47:35 +0800 From: "Zhang, Xiao" To: "Yigit, Ferruh" , "dev@dpdk.org" CC: "Zhang, Qi Z" , "Wang, Xiao W" , "Xing, Beilei" , "Lu, Wenzhuo" , "Yang, Qiming" , "stable@dpdk.org" Thread-Topic: [dpdk-stable] [v2] drivers/net: fix dereference after null check coverity Thread-Index: AQHVOrwnVrHVA2ZEgUmA4R2E1IKm/abMnxMAgACLt/D//552gIAAhmDg//9+/4CAATpWEA== Date: Wed, 17 Jul 2019 01:47:34 +0000 Message-ID: References: <1563192937-5825-1-git-send-email-xiao.zhang@intel.com> <09bb88fd-adfc-01bb-b893-a02cd65e8cf7@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [dpdk-stable] [v2] drivers/net: fix dereference after null check coverity 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" DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IFlpZ2l0LCBGZXJydWgNCj4g U2VudDogVHVlc2RheSwgSnVseSAxNiwgMjAxOSAxMDo0NSBQTQ0KPiBUbzogWmhhbmcsIFhpYW8g PHhpYW8uemhhbmdAaW50ZWwuY29tPjsgZGV2QGRwZGsub3JnDQo+IENjOiBaaGFuZywgUWkgWiA8 cWkuei56aGFuZ0BpbnRlbC5jb20+OyBXYW5nLCBYaWFvIFcNCj4gPHhpYW8udy53YW5nQGludGVs LmNvbT47IFhpbmcsIEJlaWxlaSA8YmVpbGVpLnhpbmdAaW50ZWwuY29tPjsgTHUsIFdlbnpodW8N Cj4gPHdlbnpodW8ubHVAaW50ZWwuY29tPjsgWWFuZywgUWltaW5nIDxxaW1pbmcueWFuZ0BpbnRl bC5jb20+Ow0KPiBzdGFibGVAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRrLXN0YWJsZV0g W3YyXSBkcml2ZXJzL25ldDogZml4IGRlcmVmZXJlbmNlIGFmdGVyI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