From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796235440; b=IH5crY+dMetc+gwQb3ak2DE/k9DOT+KgqySWaIdPWZyOvPyfPzi9fDlYsApr8Of//fnR 00RVnazoEMvIxWkn7h8mji4FwZ5FRWCByVo+xglN/D4xh/A4TmF3Jnaf8xVL0AOY9W5b0 b2f9vW8mFXVCoNgKgfKgbvOjoiPtP04SHDu3oPMTUYLFUL9PDx8NTbrMhAuTzHT6YPhD/ FL4L4ssbn3/FxSi/+HVuy1NbLPygBmK9cymJf6TR7onYE+5xmdk8qSRhmDknI5lzNweVx Bno5j6uQs8hXslPrI7elRc7rauJbXmrV6nm4SxZR1bctXifs8OdY2X4fNbk+u1w5m3A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796235440; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=/tCF+JEFyjF1qiODyRBeqmYHCnHsNynyQqIMIBs6Ptc=; b=v8/NLEpwsQhJxu1/75Hvxx6E/G2sjThyY5t3cZTPJ7pi8Ay8PWYMJQvVg5n07vqhwnNy 8P/hO3niILgXDRnmxAudO1uFAlAPAIWiHqGhDQImxJNRNpqPPVZ3QD4jLmCumFqwenKHR Aa51A5SgnuPd3E6uKBmN4IEcec+85ldGKjYDLrS0WwCbVta8x3EXUXSsWjiw8cES3jXkN L42FKV3BnlGgDv1+m33yoFbwmRIOxVJ91lQS0Ot1UV8kUmtxtHp7BPgc/nHuQfpBD345A qXUMC5iY3DyksqmrUHuKSeqoT62yDM1SCz3OLi2yCizgsNtu3gKjSstFXevJiuLUSzg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fM41Grfk; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 69FFF606A330 for ; Wed, 2 Dec 2026 18:17:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=fM41Grfk Received: by smtp.kernel.org (Postfix) with ESMTPSA id 042E61F0089A; Wed, 2 Dec 2026 18:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796235440; bh=/tCF+JEFyjF1qiODyRBeqmYHCnHsNynyQqIMIBs6Ptc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fM41GrfkBMRST54k4N3O6SuADNxg7mSNR+k1PFKWxXB1AkgG22es57+//dpLm5N+q wc+s20N1kAJmaSV87T2tieEEXPfJmZb3Xf9gIqH5zklXRPU+CD6vfTNWPv0MIFcjAz DhSrkkdnFUobExY4dEvuokFVXJ89B3k6rMPNW8JAFra4qWtA6Z7YPRn0zSydD2cX+S B9HpSi0zQH4FAvlo6JfVkJt8zJsofj4F8sX0aI6aorffqnHXMqrqyhAlZATXtfE1AS rgOUzJS1MUZkCmLu8wW86f/g2d6u/50McZX7HVfZEQ6GnKTzC8neU7chV9VvxCR/ot uRUz0ygSUPJSw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] leds: rt4505: Put the child node reference Reply-To: sashiko-reviews@lists.linux.dev To: "Cong Nguyen" Cc: linux-leds@vger.kernel.org, lee@kernel.org In-Reply-To: <20261202181010.3742460-1-congnt264@gmail.com> References: <20261202181010.3742460-1-congnt264@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 18:17:18 +0000 X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] leds: rt4505: __free() variable declared with NULL in rt4505_probe() -- commit f451bac4aa9f75d2dcd5e7da6c09feb97bd7b1c8 Author: Cong Nguyen leds: rt4505: Put the child node reference This commit annotates the child fwnode_handle in rt4505_probe() with __free(fwnode_handle) so that the reference returned by device_get_next_child_node() is released when probe returns. > diff --git a/drivers/leds/flash/leds-rt4505.c b/drivers/leds/flash/leds-r= t4505.c > index 6a47760645f11..111cf80cc9372 100644 > --- a/drivers/leds/flash/leds-rt4505.c > +++ b/drivers/leds/flash/leds-rt4505.c [ ... ] > @@ -341,7 +342,7 @@ static void rt4505_init_flash_properties(struct rt450= 5_priv *priv, > static int rt4505_probe(struct i2c_client *client) > { > struct rt4505_priv *priv; > - struct fwnode_handle *child; > + struct fwnode_handle *child __free(fwnode_handle) =3D NULL; > struct led_init_data init_data =3D {}; > struct v4l2_flash_config v4l2_config =3D {}; > int ret; [Severity: Low] This isn't a bug, but per the cleanup.h convention, __free() variables should be defined and initialized in a single statement at their point of acquisition rather than declared with =3D NULL at the top of the function: struct fwnode_handle *child __free(fwnode_handle) =3D device_get_next_child_node(&client->dev, NULL); --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202181010.3742= 460-1-congnt264@gmail.com?part=3D1