Re: [PATCH] firmware: qcom: tzmem: Clean up SHM bridge on pool add failure

From: Bjorn Andersson

Date: Wed Dec 02 2026 - 22:49:14 EST



On Wed, 18 Nov 2026 21:23:43 +0800, Haoxiang Li wrote:
> If gen_pool_add_virt() fails after qcom_tzmem_init_area() succeeds,
> qcom_tzmem_pool_add_memory() frees the DMA memory and area descriptor
> but leaves the SHM bridge and its handle allocated.
>
> Since the area has not been added to pool->areas, pool destruction
> cannot reclaim these resources. Call qcom_tzmem_cleanup_area() before
> freeing the DMA memory to delete the bridge and release its handle.
>
> [...]

Applied, thanks!

[1/1] firmware: qcom: tzmem: Clean up SHM bridge on pool add failure
commit: 5abc75a5f8dfbdc05928946c52e14e3c5f2fc356

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>