Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42118C4332F for ; Thu, 8 Dec 2022 20:24:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6AF8685171; Thu, 8 Dec 2022 21:23:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="dVd9I1Ya"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8B3C885174; Thu, 8 Dec 2022 21:23:52 +0100 (CET) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 40B8885171 for ; Thu, 8 Dec 2022 21:23:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-wr1-x42a.google.com with SMTP id o5so3082938wrm.1 for ; Thu, 08 Dec 2022 12:23:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=F+aRFT7U0Lcq5EAEHAcuuKv/b4QWOEqwFHkyEigyQlU=; b=dVd9I1Ya1G1bnJe0s1KnAvsKDusr0aVg21jGbcZs9nxy11RRfkfIACQvdTONw5WYwe VuSJ63H6mzBzTXppuqVmBJ5JkmSt/aYH1O9laJqYttRsKlERbrFI8F0HHHvtD8wxZKoi hIbqMtjw/EcZWR0mIRBLC2LOaywBQYrp/eChI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=F+aRFT7U0Lcq5EAEHAcuuKv/b4QWOEqwFHkyEigyQlU=; b=ge3kJ2+ew6cpCbi0d6XJlAVXeH28bV7YsSXZpSY5wNdfe8aXMCOQsIKy5elqJfM7AI FFph4k5NuUsacy1k35NEJrUsVqq910ECvMiszY6qnGO+EwNHAJjtH7vkOdrEPKapj5Gm SSxZBCl0CQMxl9vWduoFvYvrculcV3s/azgkDJACNRHXXkmJfG9Aml3AubzCNK4IvtbX uPIw+dysIoXXctDrhyrV+Xhgb7MgbCFXgHr0jDqXoSAV/xO+gB9/fLMEeMvQT0V7SiM1 dwjhkRV4R9fJQ1Hxj33Z5ykGmnKxz3vZa/kTJP2SL8AaP7g5H4l9eKDr1b23z4At1yZG 0XXg== X-Gm-Message-State: ANoB5plxUgBnmG0ftdTdSt7DRS/tFcmgAPdZlSOugVwA7VUJli9wIuZS /PY9fMe584pldTCAZxLIkit61w== X-Google-Smtp-Source: AA0mqf4x8oKMuLGoxwXlD8gX6qjR0LDdV7lCGn4IL6fG1Ew41Ul2HYdsHh2q0edgAsQ/6Br4wnPWiQ== X-Received: by 2002:adf:df09:0:b0:242:3f34:efe6 with SMTP id y9-20020adfdf09000000b002423f34efe6mr2049771wrl.53.1670531026793; Thu, 08 Dec 2022 12:23:46 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-0511-db36-5a97-af74.res6.spectrum.com. [2603:6081:7b00:6400:511:db36:5a97:af74]) by smtp.gmail.com with ESMTPSA id p15-20020a5d638f000000b0024207478de3sm22454556wru.93.2022.12.08.12.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 12:23:46 -0800 (PST) Date: Thu, 8 Dec 2022 15:23:43 -0500 From: Tom Rini To: Mikhail Ilin Cc: Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH] tools: fdtgrep: Fix handle leak Message-ID: <20221208202343.GJ3787616@bill-the-cat> References: <20221123113103.28671-1-ilin.mikhail.ol@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cfhnAM015vXHJ9dh" Content-Disposition: inline In-Reply-To: <20221123113103.28671-1-ilin.mikhail.ol@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --cfhnAM015vXHJ9dh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 23, 2022 at 02:31:03PM +0300, Mikhail Ilin wrote: > The handle "fd" was created in fdtgrep.c:708 by calling the > "open" function and is lost in fdtgrep.c:716 and fdtgrep.c:723. > Close file descriptor 'fd' before exiting with an error from function > utilfdt_read_err_len(const char *filename, char **buffp, off_t *len). >=20 > Fixes: 1043d0a0296a ("fdt: Add fdtgrep tool") > Signed-off-by: Mikhail Ilin > Reviewed-by: Simon Glass Applied to u-boot/next, thanks! --=20 Tom --cfhnAM015vXHJ9dh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOSR88ACgkQFHw5/5Y0 tyzsFgv/dkxfWvMQTKiB3QrcqAMSFXFf+CE/vn2uqDQQhJ8b5rzaOOdIf2L5dbAo XSKKc4jCdoSZXSyH1/UffcPCvrNaQy3djrxGnxoXzjU2D8Yv0eZ7aIKwALmlwgTv Vu2FyiAdkT5Gv5HLosd3Qcb80e4XO+4JyoP35uIeHUxeboAIiw4Auc28SvkrAZOm SrvIuElMEl7jSgnQwQg3bML0mOioDqGkvkSfDqx0baoKZK06by2ZqImF/28ADc3H yn7mvLenIPnbhTOn2t9TGLPoqM3XeKapqjXnNiYSNyra+kaBb8Moie8KJckDWOjK sUbeyccxRVVf/Csng7TpZfrjU7wqPXd1QyIFRGu67U+y8fiXnGyXbza+VfG2Ln2z LfPnSevtBYBfG38zr7+zXB17uN3fUqIGTv2mxnGsPPU6EdgdYYbPXNTOah5fREGj G9fJhPfnPrdbR7WdDUV0WulCz3/WpavQKNte7imPegQhSNHyR2wMuzMJBZbIxdtu B54i5deF =C+2r -----END PGP SIGNATURE----- --cfhnAM015vXHJ9dh--