]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: wwan: t7xx: destroy DMA pool on CLDMA late init failure
authorHaoxiang Li <haoxiang_li2024@163.com>
Sun, 21 Jun 2026 03:17:14 +0000 (11:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Jun 2026 01:44:41 +0000 (18:44 -0700)
commit2bd6f26d4ce1e87de4d736b1e8896daf3acf1c0e
tree356068de5c7fcd4e77a400a16386f1c24037cf1b
parent6117098309452c641af4458a0f7c02888b026fb6
net: wwan: t7xx: destroy DMA pool on CLDMA late init failure

t7xx_cldma_late_init() creates md_ctrl->gpd_dmapool before
initializing the TX and RX rings. If any ring initialization
fails, the error path frees the already initialized rings but
leaves the DMA pool allocated.

Destroy md_ctrl->gpd_dmapool on the late-init failure path
to avoid leaking the DMA pool.

Fixes: 39d439047f1d ("net: wwan: t7xx: Add control DMA interface")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Link: https://patch.msgid.link/20260621031714.3605022-1-haoxiang_li2024@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wwan/t7xx/t7xx_hif_cldma.c