Re: [PATCH] iommu/rockchip: Fix device reference leak in rk_iommu_of_xlate()

From: Xiangwu Lai

Date: Wed Dec 02 2026 - 01:36:30 EST


Hello Joerg,

On Tue, 1 Dec 2026 11:34:34 +0100, Joerg Roedel wrote:
> The patch does not even apply to 7.4-rc4. Please fix it up and re-submit.

Thanks for the report. The mismatch comes from the treewide conversion to
the devm_kzalloc_obj() family: it rewrote the devm_kzalloc() call in
rk_iommu_of_xlate() that the v1 hunk used as context. The leak and the
missing NULL check are unchanged on the converted code.

I have just posted a v2 rebased on top of v7.4-rc4, with that hunk
context adapted to devm_kzalloc_obj(). The fix itself is unchanged and
the diffstat is identical.

[PATCH v2] iommu/rockchip: Fix device reference leak in rk_iommu_of_xlate()
https://lore.kernel.org/all/20261202062923.1037-1-laixiangwu@xxxxxxxxxxxxxxxxxxxx/

Thanks,
Xiangwu Lai