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 A04B011C5 for ; Wed, 27 Apr 2016 08:34:07 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 26 Apr 2016 23:34:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,540,1455004800"; d="scan'208";a="963597282" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 26 Apr 2016 23:34:06 -0700 Received: from fmsmsx121.amr.corp.intel.com (10.18.125.36) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 26 Apr 2016 23:34:06 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx121.amr.corp.intel.com (10.18.125.36) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 26 Apr 2016 23:34:06 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.229]) by shsmsx102.ccr.corp.intel.com ([169.254.2.232]) with mapi id 14.03.0248.002; Wed, 27 Apr 2016 14:34:03 +0800 From: "Wu, Jingjing" To: "Mrzyglod, DanielX T" , "Chen, Jing D" , "Zhang, Helin" CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] i40e: dereference before null check Thread-Index: AQHRmY08YPU/jhjj40+t4RK6AzsT0J+dak/w Date: Wed, 27 Apr 2016 06:34:03 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F8E273BA@SHSMSX103.ccr.corp.intel.com> References: <1460998153-187871-1-git-send-email-danielx.t.mrzyglod@intel.com> <1460999603-188184-1-git-send-email-danielx.t.mrzyglod@intel.com> In-Reply-To: <1460999603-188184-1-git-send-email-danielx.t.mrzyglod@intel.com> 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="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] i40e: dereference before null check 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: Wed, 27 Apr 2016 06:34:08 -0000 > -----Original Message----- > From: Mrzyglod, DanielX T > Sent: Tuesday, April 19, 2016 1:13 AM > To: Chen, Jing D; Wu, Jingjing; Zhang, Helin > Cc: dev@dpdk.org; Mrzyglod, DanielX T > Subject: [PATCH v2] i40e: dereference before null check >=20 > Fix issue reported by Coverity. > Coverity ID 13302: > There may be a null pointer dereference, or else the comparison against n= ull > is unnecessary. >=20 > In i40evf_config_vlan_pvid: All paths that lead to this null pointer comp= arison > already dereference the pointer earlier >=20 > Fixes: 2b12431b5369 ("i40e: add vlan stripping and insertion to VF") >=20 > Signed-off-by: Daniel Mrzyglod Acked-by: Jingjing Wu