Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp672415pxk; Wed, 2 Sep 2020 11:41:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxlYk/XKAI+BBWxUYVG4oGP6JuPiwhQof8vwv4ObCsOPMD1AU7WxScLnrmZSlktV1qk8VF X-Received: by 2002:a17:906:72d2:: with SMTP id m18mr1372951ejl.220.1599072066635; Wed, 02 Sep 2020 11:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599072066; cv=none; d=google.com; s=arc-20160816; b=x0UiCJeHfDNA0gSQVoCfR4+HapnmcOBLJxfXpqWGRYZV49vksyDQMufBwOh82VZ19o mBOpU0vZA7kNAXV8gg9uEYWMCoQy6vFvLoxGH7Z9+uPqzi2RC1P0jzupEghaZV3N/F1k fDMc/XAR+7YlP5zdgcPat40kZT+XR635VDl51qch5ZtohjIO1t49JRfEZ17qUc3IOHpT Gl4Hw0qcLdYAVHkFbzabA/pYstpwK6fM1gwgGEiyjnpNhSqRVqK/rpdrpc6BjYfhrHN6 YTYDMg1U3xBfc7BUAEvb7JNQcjiFLa2KJ+RIN9ejJ/BniUly00j8aBHDGKp7NFQxLPVh GP3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=r9SQkvp+4xDLM1f1ISsoNC16VrZH6CjkMbZm+l3ALiM=; b=NdBAJMOnOeaXGOctu/njbHwwxCAHL5gEytU+B9w7kpdJzuddKCmf7lC4h79BLPNPW1 pcVg3oFvNU7wsJBsolX4F4tQuI1m493GH3jgHZh9Jd62q8tKbW7QAEHFraCo5pEvmgK3 WJgp1APFmY1I17mHB1iV4Np9B+hXSnFAtzuvWPwa9KDpe8D3l2tf9qdjoBAgV7LqmyR+ UBvPeCoZXuom4JNaIJjwT8NwAZq456MMnJGd0anL67A1bMiLSahkiU+ZDR8RC73HvYNs usUYNcU5hD6TB851g4IJH0vz//DgWa8GIEPcB9PDNl726cXObpwinpuXYFINOVVMRa9b vM6g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx20si213298ejb.469.2020.09.02.11.40.43; Wed, 02 Sep 2020 11:41:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728148AbgIBSgV (ORCPT + 99 others); Wed, 2 Sep 2020 14:36:21 -0400 Received: from www62.your-server.de ([213.133.104.62]:52302 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbgIBSgU (ORCPT ); Wed, 2 Sep 2020 14:36:20 -0400 Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1kDXcF-0004tt-Vh; Wed, 02 Sep 2020 20:36:16 +0200 Received: from [178.196.57.75] (helo=pc-9.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDXcF-000Xs7-Nq; Wed, 02 Sep 2020 20:36:15 +0200 Subject: Re: [PATCH] xsk: Free variable on error path To: Alex Dewar Cc: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , 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 References: <20200902163319.345284-1-alex.dewar90@gmail.com> From: Daniel Borkmann Message-ID: Date: Wed, 2 Sep 2020 20:36:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20200902163319.345284-1-alex.dewar90@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.4/25918/Wed Sep 2 15:41:14 2020) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/2/20 6:33 PM, Alex Dewar wrote: > In xp_create_dma_map(), memory is allocated to dma_map->dma_pages, but > then dma_map is erroneously compared to NULL, rather than the member. > Fix this. > > Addresses-Coverity: ("Dead code") > Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") > Signed-off-by: Alex Dewar Thanks, already applied a fix that was sent earlier [0]. [0] https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=1d6fd78a213ee3874f46bdce083b7a41d208886d