Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp37523ybj; Fri, 8 May 2020 06:04:26 -0700 (PDT) X-Google-Smtp-Source: APiQypJU188zvK/IcW5Dlnjv8KKWy7VjRpFnXAQRd88uULft4Lcu1XWSi+fjMw74P1pfsr6Uofwc X-Received: by 2002:a05:6402:7d6:: with SMTP id u22mr2044045edy.149.1588943066400; Fri, 08 May 2020 06:04:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943066; cv=none; d=google.com; s=arc-20160816; b=YzDHnx84Sia+GKGk00AA1wvzUWCj4iuO0rkIAOXdD751smGuLR8jhzhxmUEBAUCCVa bnlEmGw3JpqygectCg6FRWNbU2sLA/tUvViTaGE8mb8Z6CjYYyEIdx9H0SqFKZKKVZTP d68fgFSrA/S+k3WpcI4BPBycKVFWsXn7yzTf913c9/c4yhaF5kyi/+roi/s3YzVxTEb2 N7vnfKuAa3BYE/zt2q4FBA1qb1bFkbbDSeHVQ8nSH+UbpPYU+jlxIVUxqEvaPA13K0Pc DhzK23POV21EQ4lsOSXmX7s5l7UdE45He2/311BEoyV1VI9+JF/vvGCEk1fljYOrU4M/ Hanw== 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:message-id:subject:cc:to:from:date; bh=m4+pSLJW4sZ8+UhGh4SGHzUa2WP/I+Pke39GUTd7IfA=; b=b+u7madcdmWhUDBXx7h0/eI3slviZzadAL86tOBU42DEEd4cGW3QSySNTg3KozlDWh f2x0LwxQiB/eeSjxFw4AVhsh887JqS2IFT+pFj/sT0wIqgLWRMyQ8Xq/T7S+z8s7ZmEX BYp89vQomTT6oFF8/jrMGq+s6qdNcjAMFwu5sCIefHvI8Mfc6CKrheL98H3luqujQVet 5OJ7C1GnN9GUf093yioBYES57bjO6TXTEesA1viLIuTZtawBMvYav/CHkVZYImsWsnP8 JgSDmVOeXxthJnpqe4CGZMoV8Cw0+IHOZSy6yfAK50AhPkgRU7nMrxqYGlCiK5N/jNf4 bAMA== 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 w22si903347edu.568.2020.05.08.06.03.51; Fri, 08 May 2020 06:04:26 -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 S1730250AbgEHNA5 (ORCPT + 99 others); Fri, 8 May 2020 09:00:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:45234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbgEHNA4 (ORCPT ); Fri, 8 May 2020 09:00:56 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D9ECA2054F; Fri, 8 May 2020 13:00:54 +0000 (UTC) Date: Fri, 8 May 2020 09:00:53 -0400 From: Steven Rostedt To: Yunfeng Ye Cc: Markus Elfring , Masami Hiramatsu , , , "Shiyuan Hu" , Hewenliang , Dan Carpenter Subject: Re: [v3] tools/bootconfig: fix resource leak in apply_xbc() Message-ID: <20200508090053.430d28d7@gandalf.local.home> In-Reply-To: <938cd0e9-d96b-766c-cfbc-4f0b73d97cd4@huawei.com> References: <3569aa33-8963-966d-9247-ec79b3b3d56d@huawei.com> <5e2c3348-f346-e3f2-9c7c-5c4135f9b38c@web.de> <559edb00-a03b-747e-8ba7-1f16285deefb@huawei.com> <65057e82-8002-4ec4-b714-25ac8d05cb68@web.de> <938cd0e9-d96b-766c-cfbc-4f0b73d97cd4@huawei.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 May 2020 19:42:56 +0800 Yunfeng Ye wrote: > On 2020/5/8 19:30, Markus Elfring wrote: > >> this change can fix the warning of tools. > > > > Would you like to point any specific source code analysis tools out > > for this issue? > > (Can a corresponding attribution become relevant for a clearer > > change description?) > > > The tools we used is not for open source. it point out some error description like > "Memory leak: data" and "Resource leak: fd" in tools/bootconfig/main.c. > > Can I only description: > "Memory and resource leak is found by a static code analysis tools" ? thanks. Markus please stop! Your suggestions are just your preferences that are not required for the kernel. Yunfeng, your v2 was fine and has already landed in Linus's tree. Feel free to ignore Markus's suggestions in the future. See commit 8842604446d1f005abcbf8c63c12eabdb5695094 -- Steve