Re: [PATCH] iommu/of: Fix device node reference leak in of_iommu_get_resv_regions
From: Markus Elfring
Date: Tue Oct 28 2025 - 09:05:41 EST
…
> Add a call to of_node_put() to release the reference after the usage.
…
How do you think about to use the attribute “__free(device_node)”?
https://elixir.bootlin.com/linux/v6.18-rc3/source/include/linux/of.h#L138
https://elixir.bootlin.com/linux/v6.18-rc3/source/drivers/iommu/of_iommu.c#L196-L271
Regards,
Markus