Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp502136lqe; Sat, 6 Apr 2024 09:54:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJkec+9UJBMdkHjf4OqPRBWACDs8nfG+jI2JRYbh0vE/NQwwWwUJPMj0fpAjpq9uOHF5pX87CqoHUW1BR45KXFk5ZLQJMUYPDMJHtojA== X-Google-Smtp-Source: AGHT+IG9crjWNCu2SQndFzQR3hxmBg1y23OG+4c4v3aBVx6P5VAx/+p85DYq0HmFYz8v6qjGjeGt X-Received: by 2002:a05:6a00:c89:b0:6ea:c62c:c20f with SMTP id a9-20020a056a000c8900b006eac62cc20fmr5463759pfv.9.1712422449650; Sat, 06 Apr 2024 09:54:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712422449; cv=pass; d=google.com; s=arc-20160816; b=X1yUO1KykQ1A9Xlmxohq54tMefnxU+A9GaQm5t2mngJcVYqAFH+oTj09kgmXt0scsa kdUmVwhnfYKtGzrmyi3qxhYeAO/n79D4ZrZP2Cm6OgMCo796y6W4tgXjiuL8JKGDsI/U I1E8YQDMpzqdhuel/ZEyompzjXrIM2zLlLDq9uwcBU92sQzo1uBBNsYNdYb0zGGDzPMr tvCEXTv6+B6EUgVzL/Qp74eUwwT/oQ89RI58S3vmmclpep8bM3ENLaHBQFB42PKT3Mau KD4PJpEIhqQSE5ir7fyhhcCMh6IrUuGHTrhlFijC5U71CG/Oepp7VZZ9c20oawY1xK38 jgRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=8OoNAM5ALchJwOotkHMaOwto+M/19MQFp5FbMs4Dw1g=; fh=EbZH//H+m5+9BuIvOSGON5yA0DLB+JhkUCxL+CO5W5g=; b=sD2YAzSkeOIWp08b6mYIdagqeho9WsQbh7YD9u9DA55ZhWwRLNlW8nfcG2BPBbuKh0 c2GAdJOGjKDVyYs1a1JutEFj/ryIgHWIuPW1h9GZVpICH/0NWg1uvU19paITNhQ68HOg 3CoSm2w9JrUa9PLKpUVSDDw3JLY/HfwSgplD7bG3BEV2l0/iLyOeU7EgSFWqvZnHxN0X jRU4wyYFFikzI8/4L1QU7cfBiSYeQJzFGxN115o/Kx8sOFGYDUW0PAt+/UYsjXi471KM Mbw2tSEbusxLKJ9ZsPJwy0kBFec90ZG82ANqduKbhKbyiOrBpxiTvB1iFCohaMANtb7J Zm3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iDSyDmJd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134034-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z11-20020aa785cb000000b006ea93e60f84si3281818pfn.191.2024.04.06.09.54.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 09:54:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iDSyDmJd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134034-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134034-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BB059B21A4A for ; Sat, 6 Apr 2024 16:53:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A319440853; Sat, 6 Apr 2024 16:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iDSyDmJd" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBDB6405FF; Sat, 6 Apr 2024 16:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712422324; cv=none; b=b5hho00ZX+bOnG2HM1z8B72M1skyN4yK8F9O3BwaZhya1HOXdNbPGkCC1P/gQSjSNo5o8ToVoOId75SumKdfFE+maxIYTIIBRht6rjeG95SBOu/UtuGrL+9VtGoTve8VDQu6TlLYR8EEbt+l49zKssGFsrJahuTXafg9fPPKUs8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712422324; c=relaxed/simple; bh=I54NXFbkQcPOBxp/oFLSaWT2pCoL0Ch2SA3oANFNikQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eHsOqj5Bzh+V2Qll9P0OjIcuE0bSv1U1bbKFuXMRSA8mFhd3gmysdrv45xsjCxEZHmJZg2cuQ7pVcWcm5EQ3BCriPr6O2sW8RKFRPEjHUvHG9hKwXEM8W06yotugjWxTiEVe7z4aqvuxJRTWhRE+e0FwMkooZKEQ7rveGVENmlA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iDSyDmJd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8207BC433F1; Sat, 6 Apr 2024 16:52:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712422324; bh=I54NXFbkQcPOBxp/oFLSaWT2pCoL0Ch2SA3oANFNikQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iDSyDmJdaYfvS00zLTR6FC4DwoR5ia7875ndItH4MKQhCFiSUcV+Dvm5XC1GJff1C AyPyYuCE5mtGcp1dmIeOMS6qfJP+E59IEJMpJceFdQtU6lfSL8WJWh4jUUZYIF8BJZ PSClN27EkGTX0hgJCT1R9IiuDB1medx2QIPeS8JX/GR5K3BfkOFBV3vtfpIGN8stmN CDhEwkMsI+Uek5gHxygbDtqbP3NqIciFKas1l64y0CeOeTsmoeRqeJwCIZlD8dm312 Y1uc0VRAlVKDBMcSBjy0ttS0GaTqwEwtr5RorJTyI8ijWjqJ7RQ8+ndaSBJL1FJY60 Pxsm844oRp1Bg== Date: Sat, 6 Apr 2024 17:51:51 +0100 From: Jonathan Cameron To: Rob Herring Cc: Saravana Kannan , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] of: Use scope based kfree() cleanups Message-ID: <20240406175151.2067c01e@jic23-huawei> In-Reply-To: <20240404-dt-cleanup-free-v1-2-c60e6cba8da9@kernel.org> References: <20240404-dt-cleanup-free-v1-0-c60e6cba8da9@kernel.org> <20240404-dt-cleanup-free-v1-2-c60e6cba8da9@kernel.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 04 Apr 2024 09:15:11 -0500 Rob Herring wrote: > Use the relatively new scope based kfree() cleanup to simplify error > handling. Doing so reduces the chances of memory leaks and simplifies > error paths by avoiding the need for goto statements. > > Signed-off-by: Rob Herring Reviewed-by: Jonathan Cameron