From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2 2/3] i40e: fix dereference before null check Date: Tue, 5 Jul 2016 14:24:49 +0100 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 Cc: jingjing.wu@intel.com, michalx.k.jastrzebski@intel.com, dev@dpdk.org To: Beilei Xing 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) Content-Disposition: inline In-Reply-To: <1467699005-16235-3-git-send-email-beilei.xing@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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