Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp670068pxk; Wed, 2 Sep 2020 11:37:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp3ry1M+YAhMkjFqg9yacmnPL8Ov98sBu7mdrWnqaXgnZWDcQbYI+qxBfXyPnQl1B6cnQU X-Received: by 2002:a17:906:c34d:: with SMTP id ci13mr1346709ejb.356.1599071827820; Wed, 02 Sep 2020 11:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599071827; cv=none; d=google.com; s=arc-20160816; b=QfYY9GpvXOJH2ujB3ap6UhCWQb5KKEteXefKJh0R1o65gCnFTopA5xI/h7iRy9C3OR D+z+K1eoWhENaeORoz0/1JtqCFfck+MaCxvHx/sCSYa+Ya7Vh2j6HKrv5HeTfDYWITq6 NhPcnlMQfkqraFRmluxNVH3rtvmY/fin+qJc1gUaGz++uCm9n5gbJy1cypkDdgChX9jv q2STb85H8xMFzF5I070xE9Uf21K/zhUSdvVRywziUFoOX7v9+jbIvYOLpPIR0vL/UlxA 4TgE52WYfo1mKfxlyZeTpavQ65RPppDVGL16JFEzniHzmNDKgU8mGJFQuVa/p+QhEbvP kz4w== 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=wKvjL8ZXstU9Rfg7jRLxijcmNU12aPEt5myWx58Dj+c=; b=aKj8MmBE5Mg7ZdFbRiJSyh/oxli0QoM5L8zSsPJaHDC3k+kuwx+16JWPDt3e9f2DAe +vchuErZ3ONpaAf04g89L74/cp+2EyMfw/wpk88gcuobOkF12J24spYEW/A+vaS7Vcro POE5/ZVArNehivNfSpA5fZDzkaG/jxlkjsI8qLORuS1IcmXcUfYpUmERNlfaXf64vHiO W/H2F/g7m90LZ7fXg0jiW9dbEUtAV/1QjGUKVPWN4NcqJOMUqr6PyTmtjImas4Ns9laU XMmLWaVvXaJbBeimCayLfjb4oeIhfD1sfzo80OZL9JmFFhztHTLeVZ49OP6m2mHSdNI0 gMeA== 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 h21si71749edj.244.2020.09.02.11.36.43; Wed, 02 Sep 2020 11:37:07 -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 S1728107AbgIBSd4 (ORCPT + 99 others); Wed, 2 Sep 2020 14:33:56 -0400 Received: from www62.your-server.de ([213.133.104.62]:51896 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726446AbgIBSdz (ORCPT ); Wed, 2 Sep 2020 14:33:55 -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 1kDXZn-0004fd-Hx; Wed, 02 Sep 2020 20:33:43 +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 1kDXZn-000QLd-A8; Wed, 02 Sep 2020 20:33:43 +0200 Subject: Re: [PATCH][next] xsk: Fix null check on error return path To: "Gustavo A. R. Silva" , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Magnus Karlsson , Jonathan Lemon , "David S. Miller" , Jakub Kicinski , Alexei Starovoitov , Jesper Dangaard Brouer , John Fastabend Cc: netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200902150750.GA7257@embeddedor> From: Daniel Borkmann Message-ID: <9b7e36c3-0532-245c-763a-8f4e7e36b358@iogearbox.net> Date: Wed, 2 Sep 2020 20:33:41 +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: <20200902150750.GA7257@embeddedor> 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 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!