From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C26E55949 for ; Tue, 5 Jul 2016 15:24:53 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 05 Jul 2016 06:24:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,579,1459839600"; d="scan'208";a="840936051" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.53]) by orsmga003.jf.intel.com with SMTP; 05 Jul 2016 06:24:50 -0700 Received: by (sSMTP sendmail emulation); Tue, 05 Jul 2016 14:24:50 +0025 Date: Tue, 5 Jul 2016 14:24:49 +0100 From: Bruce Richardson To: Beilei Xing Cc: jingjing.wu@intel.com, michalx.k.jastrzebski@intel.com, dev@dpdk.org Message-ID: <20160705132449.GB23500@bricha3-MOBL3> References: <1467272056-14388-1-git-send-email-beilei.xing@intel.com> <1467699005-16235-1-git-send-email-beilei.xing@intel.com> <1467699005-16235-3-git-send-email-beilei.xing@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467699005-16235-3-git-send-email-beilei.xing@intel.com> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v2 2/3] i40e: fix 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: Tue, 05 Jul 2016 13:24:54 -0000 On Tue, Jul 05, 2016 at 02:10:04PM +0800, Beilei Xing wrote: > Null-checking vsi suggests that it may be null, but it > has be dereferenced before null-checking. So move if > statement to the front of assignment statement. > > Coverity: 119265, 119266 > > Fixes: d0a349409bd7 ("i40e: support AQ based RSS config") > Fixes: 647d1eaf758b ("i40evf: support AQ based RSS config") > > Signed-off-by: Beilei Xing Acked-by: Bruce Richardson