Message ID | 20201214172555.680735339@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3267260jai; Mon, 14 Dec 2020 11:08:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeJoewJhhW8WPurzpl3DIHtxTLlIAG2H5M4hyyNBY/1/U6WO59ciUBXai8QZ695j/agGAH X-Received: by 2002:a17:907:4243:: with SMTP id np3mr23430873ejb.212.1607972900697; Mon, 14 Dec 2020 11:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607972900; cv=none; d=google.com; s=arc-20160816; b=YTZJvJwke7OoXsPG9qtl+zzu/AtFo8K9ltUlCqUkrJqor7IRGzAj74sToyh7rjVWU0 ynHtvIMmb3ilGPE0MPtukoDQsPQxduTEDMX828yPyPa3wwqOeoJzmQGQnnh/gh4Br72L GABwWsIfZ9dbpFkYgxkUYqnK9hZMnL2gM67vVQXt0iy3MJ9LY1GsAlcqn7CEn7D782It 8tbI7o27BMxb3jOaeMB6Ck2FpOuCmnvNuGN6/je0rA0VSEpps0W5YhltKo9BU11awAyI NMp5KJnnswJ+ZRld+RVoNrHQDMne8pf3O9A/ml0CFksiI8mwPBrUPgbW4rnX1MW/M83L Xzmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=U5q/asH4Gsqfx1KFKzo1vuk2Nuj5+iK/g2rca/wyXVs=; b=uW1xjltc/ACwpAAUOn2jKYKxEAv91Mb0BZlCDUw9QwFeQ4pMZCiq2zDM8deQQPp+7s qwaCZ339/ayJtv3DFUGcWSzFHJgtBdXkQDJhCo8RmOLPaDzjSloEwILFt6G6m/BrLiYk MNIxr9psf2xhFPWibxetrG55DcyOlbzeoS8glsJrLH96Dc3nefM+y9i+Oxg3sFlXgBpT QPKeCsn5nSk06N59UfhY+7zpBcgsZQBAmcES+itzSP/FDjKc32fJcrETfQ47HPrjCeUq pqhsyWSDqj7nIGHgZTJmgkeLQnFfOrRFBHwrVHIoBhL3492NgHGQ7RpHmG2iC7Ih4lON tlhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si11752223ejt.452.2020.12.14.11.08.20; Mon, 14 Dec 2020 11:08:20 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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 stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408602AbgLNRhX (ORCPT <rfc822;semen.protsenko@linaro.org> + 14 others); Mon, 14 Dec 2020 12:37:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:47328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408572AbgLNRhQ (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 14 Dec 2020 12:37:16 -0500 From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Hulk Robot <hulkci@huawei.com>, Zhen Lei <thunder.leizhen@huawei.com>, Daniel Borkmann <daniel@iogearbox.net>, Yonghong Song <yhs@fb.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 5.9 008/105] bpftool: Fix error return value in build_btf_type_table Date: Mon, 14 Dec 2020 18:27:42 +0100 Message-Id: <20201214172555.680735339@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201214172555.280929671@linuxfoundation.org> References: <20201214172555.280929671@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/tools/bpf/bpftool/btf.c b/tools/bpf/bpftool/btf.c index 8ab142ff5eac5..2afb7d5b1aca2 100644 --- a/tools/bpf/bpftool/btf.c +++ b/tools/bpf/bpftool/btf.c @@ -693,6 +693,7 @@ build_btf_type_table(struct btf_attach_table *tab, enum bpf_obj_type type, obj_node = calloc(1, sizeof(*obj_node)); if (!obj_node) { p_err("failed to allocate memory: %s", strerror(errno)); + err = -ENOMEM; goto err_free; }