Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EECCA471272; Tue, 21 Jul 2026 18:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784659119; cv=none; b=eQ9i8Jmc5Ec13zHz/7q03XXSGVvFdr0ioC17UQeB3fsN5jKl0hyayFCRX3C0ouerhANhb52dzyZ2joiz8+1Ka9VHK6OtAE2mb6vw4GJ14ew05gzIp+XgELIsB2WRUuDaJHziHVmAhZAb3BDoB/oXa2nwnJNXaV8BuI8j1eMkLDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784659119; c=relaxed/simple; bh=EORGShHpBlUyXWkJVerPFz7TkVucfM+beTyziv5IDFI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kQRqSJpoYtkFqDdLJID38G96HKYSi3JSqtjEi9k6nWXsuAscb/tXDLAhhAnpH2p9cpmxzsLZz28uN8584lICRlSlu1/uEhgURgc7gyqF3tA8td6py+GosFSnCUB7woer9xT+4/h5yUo6YB6gildn9zVcAnAWeTDu156ed0bXb5c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=srLEfine; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="srLEfine" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 520351F000E9; Tue, 21 Jul 2026 18:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784659117; bh=DWX9RUQa7Jt6DpuVKFiJdiYecX6W8SNosTCGh2ngvi0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=srLEfine9h0bwchSzq50pzLj55neD98tu1IyghiRl/mQyxBY4b5arbVuAUCZl0G9r DE3aJiixwVgDDeue2khqxjKuSQCezMLwCaG32GkWS3DF7OqyZtIiKBDz9O9P3i5ieD i0Kefv8vFjVYKOFCD2ns5rMKFMmQH3YtdPmrXmoc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Haoxiang Li , Loic Poulain , Jakub Kicinski Subject: [PATCH 6.18 1401/1611] net: wwan: t7xx: destroy DMA pool on CLDMA late init failure Date: Tue, 21 Jul 2026 17:25:17 +0200 Message-ID: <20260721152546.955713021@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152514.750365251@linuxfoundation.org> References: <20260721152514.750365251@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Haoxiang Li commit 2bd6f26d4ce1e87de4d736b1e8896daf3acf1c0e upstream. 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 Reviewed-by: Loic Poulain Link: https://patch.msgid.link/20260621031714.3605022-1-haoxiang_li2024@163.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/wwan/t7xx/t7xx_hif_cldma.c +++ b/drivers/net/wwan/t7xx/t7xx_hif_cldma.c @@ -1066,6 +1066,9 @@ err_free_tx_ring: while (i--) t7xx_cldma_ring_free(md_ctrl, &md_ctrl->tx_ring[i], DMA_TO_DEVICE); + dma_pool_destroy(md_ctrl->gpd_dmapool); + md_ctrl->gpd_dmapool = NULL; + return ret; }