Re: [PATCH v2] phy: hisilicon: hi3670: Fix OF node and device reference leaks
From: Vinod Koul
Date: Sun Sep 13 2026 - 07:01:19 EST
On Fri, 20 Feb 2026 00:38:43 +0800, Haotian Zhang wrote:
> hi3670_pcie_get_resources_from_pcie() leaks two references:
> 1) The OF node returned by of_get_child_by_name() is never released.
> 2) The device returned by bus_find_device_by_of_node() is never put.
>
> Fix both leaks by calling of_node_put() right after
> bus_find_device_by_of_node(), and put_device() after dev_get_regmap()
> when the temporary pcie_dev reference is no longer needed.
>
> [...]
Applied, thanks!
[1/1] phy: hisilicon: hi3670: Fix OF node and device reference leaks
commit: 2638a0e60f65e38bbd28400340ab92fa67b562b3
Best regards,
--
~Vinod