Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp418506imm; Tue, 24 Jul 2018 22:47:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcEgrivl1J4EGvXpbNsFXfTGlXznDq7ebGPc7BPIAB6kaJejWh6k+ih0ZFjUkvOWt4e0Ua7 X-Received: by 2002:a62:9dcc:: with SMTP id a73-v6mr20124399pfk.249.1532497625851; Tue, 24 Jul 2018 22:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532497625; cv=none; d=google.com; s=arc-20160816; b=UdE3FHT6gtzMDWQwYOwEOkZmptGFL4BXejArpNtZoc7hGlEC/xsU+vqmVfP2+QW7Yz JN1GAmXsLZ4iEJRqLMyGIPpUXgtr++Z6F2B8w+u38clxBSRjRzvu8OF7xMy64Xz1aIiV O4/YsDNfmirt+75ob4GmkStGHgcreVBaQkxXTJt7HOLqO70OAhe2aMZSWW4lRJUajBEe LeKGKk6CfSO1dNcZZM1Ev9/eCyWeGyOas/1E2Wdk+Xw5Y4W++abtBwgsLwjUrpx+kU6W 90ExsBZiXCEMuQLOhk07izt3gO+s4Ky27AL/6hdDtqyM9hwFC4xM1zl6sW0gfTmp7S5p E+dQ== 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:arc-authentication-results; bh=4V3kl8mVy6DxNTiu8LcV3LDFH/up6ciYyP0gohM4gQ8=; b=Fq/Kubp/KPNB19L6NUf0itwKHcEiSzKcKZB7iAenBZiEVvO/eshc4XTy1bB7zQnjZv 4h3/iHlz6gfXhrhBoHwWQNf53uRAFWvTfTI9ZhNy/L4SrVKg2U1Z5Gv/PCQR6aGyiaZb WVruVmkyj1dWkGaMQ0gumX/YxsHG/flzwJO0+c8A+NoVeTYeAmuMdUjRKH9jtqjUWq9M xzHubiRnaW1QyJHENJ8LrOG44UaaUWHSrK9fdFgeODLse7nOokt6lKfC+caYqhh835VX wbhhyaaz3RoyE/vVLnf34YYU15tUclcFVRNoQxZdkryiDbQB9KbI95c3jheKxOUmvPXZ ssJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18-v6si9112540plr.134.2018.07.24.22.46.50; Tue, 24 Jul 2018 22:47:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbeGYG4E (ORCPT + 99 others); Wed, 25 Jul 2018 02:56:04 -0400 Received: from www62.your-server.de ([213.133.104.62]:43585 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727826AbeGYG4E (ORCPT ); Wed, 25 Jul 2018 02:56:04 -0400 Received: from [78.46.172.2] (helo=sslproxy05.your-server.de) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1fiCcT-0007a1-DD; Wed, 25 Jul 2018 07:45:53 +0200 Received: from [2601:647:4601:b6c5::9c2f] (helo=localhost.localdomain) by sslproxy05.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1fiCcT-000BbA-3f; Wed, 25 Jul 2018 07:45:53 +0200 Subject: Re: [PATCH bpf-next] bpf: btf: fix inconsistent IS_ERR and PTR_ERR To: YueHaibing , ast@kernel.org, quentin.monnet@netronome.com, jakub.kicinski@netronome.com, bhole_prashant_q7@lab.ntt.co.jp, osk@fb.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net References: <20180724025524.22012-1-yuehaibing@huawei.com> From: Daniel Borkmann Message-ID: <6c0b807c-56b8-7ac7-bd5c-49f438e2e10d@iogearbox.net> Date: Wed, 25 Jul 2018 07:45:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180724025524.22012-1-yuehaibing@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.0/24780/Wed Jul 25 02:42:30 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/24/2018 04:55 AM, YueHaibing wrote: > Fix inconsistent IS_ERR and PTR_ERR in get_btf, > the proper pointer to be passed as argument is '*btf' > > This issue was detected with the help of Coccinelle. > > Fixes: 2d3feca8c44f ("bpf: btf: print map dump and lookup with btf info") > Signed-off-by: YueHaibing Applied to bpf-next, thanks Yue!