Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6501784imm; Mon, 23 Jul 2018 20:21:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdJ5bhTaUY7c0rhmrDFwGuf92rcWMsr+FOlPuU31CtkoP8EmQuC/AHDhHzlFhoV78PIMY8l X-Received: by 2002:a62:fc4b:: with SMTP id e72-v6mr16060374pfh.168.1532402483033; Mon, 23 Jul 2018 20:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532402483; cv=none; d=google.com; s=arc-20160816; b=J6jeRqegCkRIlQnsL5RJawCmx9W0ckMnZj+J4nPpW9Y1q1YVfi5GVQfWJ1OuEywLcn oduatfTm8Rbav3tBrFglY4MdiL1vLjwMJPEGm4r9MNvpENniFPsPYIo75nqYI8tw5jCx VCpbpGxaIwrcvO3uq9xWYiU/7Mjs2NI8BNuxCl4WhpUD12HBxxvh/ryRHnIN871RwpmF smZnv1lxWVnqi4vKBsUPOlMWEylMcIouJGmt9nJaA0RdeVEbwqUB0708KCFEmNHLrUbQ DW3IAqglnukluHULGeJ5IcmjxC0LRq9lwW0pDqvmuevGg0HXOXNpKPYT1ivGp8vREdPT +Jxg== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=M2jSvI4N8GTteeWG2lNXGT6gEQeVxWowcp/cahtT6+4=; b=wjsoredXRbIrGc1WXF/iA+zj/saSjTAE7leTkg0xrEhkjvYtQOrNEU4agyXbmcDYdL C4ho4f6+Im9l3wUKytWBFbyL++qVuThYlkzLPNPiFXOKsAwIQfk1dhqhIxckAVKXL9Yd lbkcWK3Jxi6DRoE02J9M63IqFnkmu1WhiwQvPcgTU4CDdmve/BKJiT4COykiBJTeN4Gz +kwWrvGHoPcNfVgRcLJ3KTBEl6QjOuUVmtyTy/Y19mf9O0tPuMCvfTZNwnRoBBzvaamD QZNcDVqivMM0I/DwylLiccNXdUPRDmJjpGnFu+VprS4YsSyw+fFPkY0HVUcX3LpHvkKT OgFA== 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 cc6-v6si2499646plb.458.2018.07.23.20.21.08; Mon, 23 Jul 2018 20:21:23 -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 S1727868AbeGXEYf (ORCPT + 99 others); Tue, 24 Jul 2018 00:24:35 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:52688 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbeGXEYf (ORCPT ); Tue, 24 Jul 2018 00:24:35 -0400 Received: from localhost (unknown [172.58.43.75]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 59CF612DE6614; Mon, 23 Jul 2018 20:20:17 -0700 (PDT) Date: Mon, 23 Jul 2018 20:20:14 -0700 (PDT) Message-Id: <20180723.202014.998386909125276647.davem@davemloft.net> To: yuehaibing@huawei.com Cc: ast@kernel.org, daniel@iogearbox.net, quentin.monnet@netronome.com, jakub.kicinski@netronome.com, bhole_prashant_q7@lab.ntt.co.jp, osk@fb.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH bpf-next] bpf: btf: fix inconsistent IS_ERR and PTR_ERR From: David Miller In-Reply-To: <20180724025524.22012-1-yuehaibing@huawei.com> References: <20180724025524.22012-1-yuehaibing@huawei.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 23 Jul 2018 20:20:18 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Date: Tue, 24 Jul 2018 10:55:24 +0800 > 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 Acked-by: David S. Miller