Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp692690pxk; Wed, 2 Sep 2020 12:13:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM4c86D+MakbINa06AIroKJaGICn1FzzrnqIf+58wjMVNy87ecGykFFzDDJfwHqLrlB99W X-Received: by 2002:a17:906:a2d2:: with SMTP id by18mr1499043ejb.37.1599073996299; Wed, 02 Sep 2020 12:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599073996; cv=none; d=google.com; s=arc-20160816; b=gRD4t7CUgfHRgiAv9cRa4lDkGZ9Es5oz4vAdouRfoFcLCais0oBK2VO6ObYmVBKMso VY0AxPvsT7sP14qCLttBEvqkq/6mIiPO60Pq+2dLXgz1IjnL0wwznj4PxDc16BfRmIrk V0lKrnkK9SjxMbMYWe01mP2wGsV11gaporTN5xqnUnmcH7TCmKmmeI5OvkW6Qa8hS5/u RmCKRYCeOReAFXyzI8HJBkHKAKtovNf1kCwe23vfw7ODosePUfLNYC7m/aUel4A0Hd8x wJSttVD0XdY4/qb+8vTDYqSCs1xcZmaPAsYN5dBls//8dJen2qxAKrjQ6UK8QsmdwUbO Dc2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cm7iR9MW6Pnb1FCG7yNbRp6av0BaYDBXW4MIo5ByKZY=; b=vVbFDUC+KMslzvSKfAW118EkkgSKfPxWJ/6P+h20+p6vR4GWKGg/K50WFxpuz4VFGQ uDUXhsvMFIp5NX84MWFqZlyEUfjPB9itGYvcQwGOioLtc0ztw18czaz7UxTc6Vlbz1ee N679FKL8tTrpJmRUW3MbnhI2R+7g0ooynCb0MmOaW3Z9jq1N2W3nsuzfgrlG/IIaRn/4 TnXEuTPZ/LWGpIwAfH2NKMOuFGfWQZPqeI3DPJRnXzHnhy7pn1/LiwprAiM9rgD+RZDo klMcKmeCSBBra9qJQNO4gBhroN4UmA5lCCIyDBXjZNZc5w95k1ZRCJZfTgXqzTJXCwRw TH9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rjELJqRH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si312446ejd.495.2020.09.02.12.12.52; Wed, 02 Sep 2020 12:13:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rjELJqRH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728111AbgIBTLr (ORCPT + 99 others); Wed, 2 Sep 2020 15:11:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:58820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgIBTLr (ORCPT ); Wed, 2 Sep 2020 15:11:47 -0400 Received: from embeddedor (187-162-31-110.static.axtel.net [187.162.31.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6070920758; Wed, 2 Sep 2020 19:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599073906; bh=WnSnslkA0WY55wziATC806B4vzwesvF3SmUSGozVyp4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rjELJqRH1dtygQUKHtxh2PN72TkvUYg/RLWeAFbJc/r1VFnEguEgCY0f9pXAt8/OV lf76OXWhqnUdJbnmoY139V92IJBIWWsEU2vMS1YtG+6HGzjVSAOp4tW0NSAhyobU8B f6o0zJEkYs4dfPLpfs2y/Ru52YvpB8Nxb1Ys/mzs= Date: Wed, 2 Sep 2020 14:17:57 -0500 From: "Gustavo A. R. Silva" To: Daniel Borkmann Cc: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Magnus Karlsson , Jonathan Lemon , "David S. Miller" , Jakub Kicinski , Alexei Starovoitov , Jesper Dangaard Brouer , John Fastabend , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] xsk: Fix null check on error return path Message-ID: <20200902191757.GD31464@embeddedor> References: <20200902150750.GA7257@embeddedor> <9b7e36c3-0532-245c-763a-8f4e7e36b358@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9b7e36c3-0532-245c-763a-8f4e7e36b358@iogearbox.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 02, 2020 at 08:33:41PM +0200, Daniel Borkmann wrote: > On 9/2/20 5:07 PM, Gustavo A. R. Silva wrote: > > Currently, dma_map is being checked, when the right object identifier > > to be null-checked is dma_map->dma_pages, instead. > > > > Fix this by null-checking dma_map->dma_pages. > > > > Addresses-Coverity-ID: 1496811 ("Logically dead code") > > Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") > > Signed-off-by: Gustavo A. R. Silva > > Applied, thanks! Thanks, Daniel. :) -- Gustavo