Re: [PATCH v2] firmware: arm_scpi: Fix device_node reference leak in scpi_probe()

From: Sudeep Holla

Date: Sun Mar 08 2026 - 08:58:02 EST


On Wed, 21 Jan 2026 21:08:19 +0800, Felix Gu wrote:
> In scpi_probe(), if of_match_node() fails and the function returns
> early, the shmem reference is not released.
> Use __free(device_node) scope-based cleanup to automatically release
> the reference when the variable goes out of scope.
>
>

Applied to sudeep.holla/linux (for-next/scmi/fixes), thanks!


[1/1] firmware: arm_scpi: Fix device_node reference leak in scpi_probe()
https://git.kernel.org/sudeep.holla/c/879c001afbac

--
Regards,
Sudeep