From mboxrd@z Thu Jan 1 00:00:00 1970 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 0E81630E0FD; Fri, 6 Feb 2026 20:29:01 +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=1770409742; cv=none; b=p3V0M42CnihKPjLpz2Jf3x0gfDbwiFx4CqiCXCqMFeHYAPeRP67GRHyVd+0SM6hHxGPyVxUrBfcaZaAf9OaZUWHtWh0nkHVVSzRpHgzK0LPD8MxzOQeLgKDh8LGs4ND36nlOl8OJAOVkD8r4bnjo6ziX71fBwBokR+F0De15qjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770409742; c=relaxed/simple; bh=8pY7QweJ/zLHIee24538hoA56yiZWJ4lKCvyynOS0UU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kQ4h2iN51Lx2OCoiK968TnpiBkkNaNY34foV2OQ13kQafmEW3d0vbL7zkwIEnrqztpp7PAKzON4E9jS5fqNw6aTuZpJws/yTAFK0jw6meKPC1qK3fS0L0vqB8Z8CBUbC11/UN0kh9C9c0qiXfu6UxqhTX1kDeXWie6xjkiWDOeo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uHlEaC9T; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uHlEaC9T" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C6D3C116C6; Fri, 6 Feb 2026 20:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770409741; bh=8pY7QweJ/zLHIee24538hoA56yiZWJ4lKCvyynOS0UU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uHlEaC9TDCwBzGBltw2w/LJAVFLQmAdI2NNJmKayaEmJQTDafdW/nMLy7mfUP5OUe 9hu+jXRaPC2I8y8ZLLQmp6vgSrja9uxQp2uVJEn2Abg2LcOK9AWeosEPfrbXvgdMvJ wGGGYH0k25uCRw/f9zyUm6YPX8BJxfEwpAYClANIQNzmfi65SqZjX+uP6x1X3A0LEd ERbMUkLHtU7w63krQZS+nPcYjsL+VoH4hnfSS/3cjkmSolMbwDr85h4iFHNMroZ5xM BQRUpe+IDXY6jXcHfZAg+tJEc9YyUQo461BSFSeFZHNYKTJ8XuwQWOUzfPcwBA3wSc 4bmsoKe5JbJCw== From: Conor Dooley To: linux-riscv@lists.infradead.org, Conor Dooley , Jonathan Cameron , Joshua Yeong , Felix Gu Cc: Conor Dooley , Daire McNamara , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cache: starfive: fix device node leak in starlink_cache_init() Date: Fri, 6 Feb 2026 20:28:46 +0000 Message-ID: <20260206-front-jackpot-6d679f8f5232@spud> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260131-starlink-v1-1-30985722d51f@gmail.com> References: <20260131-starlink-v1-1-30985722d51f@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=465; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=rOdFAqm0+imBDwjCHhhYXVxtGgIqRZWuWIeb7e4B4JY=; b=owGbwMvMwCVWscWwfUFT0iXG02pJDJltfn93vpJ9VXDS3Hz3Rm8eplqBB08cZO9czXzqKySj+ VbtuOHDjlIWBjEuBlkxRZbE230tUuv/uOxw7nkLM4eVCWQIAxenAEykSIiR4YXoR4HHe5bL6l3T nrInMnXGfLn3dtayva5fCzIfacbreDMyLA6IuumR6Sx68dbm97lcDbaesW//BKz1kX7e1uulbKf BAgA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C Content-Transfer-Encoding: 8bit From: Conor Dooley On Sat, 31 Jan 2026 01:13:45 +0800, Felix Gu wrote: > of_find_matching_node() returns a device_node with refcount incremented. > > Use __free(device_node) attribute to automatically call of_node_put() > when the variable goes out of scope, preventing the refcount leak. > > Applied to riscv-soc-fixes, thanks! [1/1] cache: starfive: fix device node leak in starlink_cache_init() https://git.kernel.org/conor/c/3c85234b979a Thanks, Conor.