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 DF55CC4332F for ; Thu, 8 Dec 2022 20:24:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BB4AF8510C; Thu, 8 Dec 2022 21:23:39 +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="sMiKpi6U"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E1FCB8510C; Thu, 8 Dec 2022 21:23:37 +0100 (CET) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 C3F8885174 for ; Thu, 8 Dec 2022 21:23:33 +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-wm1-x32a.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so4329629wmb.2 for ; Thu, 08 Dec 2022 12:23:33 -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=tdnunkf0ursoqAt+erIN7D+NsbTBJmwuh9onmthuA2g=; b=sMiKpi6UAZBaM/Ojvpi3L1BLzfSlVACl8+xX4jAbF6T7fIh5kqkue69JmMDdlsHF7s mLnOKwXsCYJ8SJfwRrWaMGxCCGuunda5hTKR9nUB754eiihjSlow7Y4fDo1ecyuwWbx/ MCblTbg9VaqCswE7Hcpm4u0wL7j7g4kXDNbOA= 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=tdnunkf0ursoqAt+erIN7D+NsbTBJmwuh9onmthuA2g=; b=YQzUAy0PTLVxS39JrhzbuwGqrOdDlyBKchhBfCAZEEv5sbfpwmFR63Bja6nhXBxLpE 7IbKuti6fg0urvp1SsWCNb/iHtLwwYtYB/qnpzRhPbcoP03sWoHo7uYyCXSUhiP0vR9W 1YgSPcs9PNPwS+ZxoB4hurhg6h2Gr5Sm1wL7sePPATc4Q28NqYxsD2NKRYYQ0Y1elbfR 3KWDdOz2Z/AQ+/nxoYiuMKgDfuI1MDlgZhPCRRd4x5LPlrUoeY6sikxQ6vRBX0wLUWF+ bnFtlxjPN57QeqKRVIBxzySNwQpRkIQbUQUbvcuI6bA/rEpaFSPC2DX2RHbnV/KZoHUn B8EA== X-Gm-Message-State: ANoB5plyOghzkip35x/90nWZKIxk07qImjzLifmxof5HKyVcUgSaumUQ XHlLVAmh3Hw6eKBQH3t/rykApeh5dFx5+gbT X-Google-Smtp-Source: AA0mqf6M39ENk1mRLoj794j/I9qP0QammpVZUOlZnhd4vRhkSrDfRmHBiWJ5nTj7CCmAubVEGk0LHA== X-Received: by 2002:a05:600c:3d0d:b0:3cf:e95b:fe71 with SMTP id bh13-20020a05600c3d0d00b003cfe95bfe71mr2738424wmb.9.1670531013377; Thu, 08 Dec 2022 12:23:33 -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 l42-20020a05600c1d2a00b003b4a699ce8esm7075953wms.6.2022.12.08.12.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 12:23:32 -0800 (PST) Date: Thu, 8 Dec 2022 15:23:30 -0500 From: Tom Rini To: Mikhail Ilin Cc: u-boot@lists.denx.de Subject: Re: [PATCH] fs: ext4: Fix free(NULL) The 'depth_dirname', 'ptr', 'parent_inode' and 'first_inode' pointers may be null. Thus, it is necessary to check them before using free() to avoid free(NULL) cases. Message-ID: <20221208202330.GH3787616@bill-the-cat> References: <20221122080055.4973-1-ilin.mikhail.ol@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Nb3mCR88I+gj1uDQ" Content-Disposition: inline In-Reply-To: <20221122080055.4973-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 --Nb3mCR88I+gj1uDQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 22, 2022 at 11:00:55AM +0300, Mikhail Ilin wrote: > Fixes: 934b14f2bb30 ("ext4: free allocations by parse_path()") > Signed-off-by: Mikhail Ilin Applied to u-boot/next, thanks! --=20 Tom --Nb3mCR88I+gj1uDQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmOSR8IACgkQFHw5/5Y0 tyyJuAv+IlWn74+q9P9xcfeT4nBT7NC4SeMotNCp+dPVCg9Xs6kFdJvipIGJIg4T n6zDKqTAXK4jfTFqkWS3JkV5vVldmoiYBFYSrZmMl3bnBzEADOfcLjvw7jJ0Qpw6 A/EwiPNRYGpABRRWQJeF907iPSWhA7fKux8EMrN0CjHsI7CHlXtq9DtqnW4Ao4ug 2Mds/szg3LxkDSfJrtbDwHgBoX/nZnY+3sXKafEtBXXP17vhLCbII/ibRxTDJbTg 9Fqr3pHWB7k039EjD4amYKnbXwy7gTy5mLCQWTQTpqVXCzOXO2x+Lb0e4nWRj0YD k1i23Y/jx55Cr5WS1wT4srVTagpO3CjRuo9GmGVWTQj19ttErOIgC13wbvocZ286 HVRjyWG3V645pMPfTdwh91uLCZmCezs0tVw5YF+4EaU94Wq/vuJ/Sv+0GBiPUEiF NK0Dn+4OGo5vfu1N1H64qSKktx4KTvs94GFW+HVQ/p6gjdbTFJTUVFxQA56/IAvA +0l2YxtJ =6F++ -----END PGP SIGNATURE----- --Nb3mCR88I+gj1uDQ--