[PATCH v2] phy: hisilicon: hi3670: Fix OF node and device reference leaks

Vinod Koul vkoul at kernel.org
Sun Sep 13 03:56:36 PDT 2026


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





More information about the linux-phy mailing list