From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 771AE2D7DF2; Wed, 28 Jan 2026 15:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769614635; cv=none; b=LZ9OM6OdkEt2Ca0YYgV108WJZkrgilq0ajEwAtZNb9VnR0u1lmf/ZI5fgBOGAP3sDMln+7bv2yDM+OHL/9gnherNfjxUtFcmhPVMlKn5Jq/8KokSgt6F62SLVTsuIrAYWUNUDMhJ39981gHHr0Y5XWc7PflSv7CWWfSpeuNBito= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769614635; c=relaxed/simple; bh=pvQciVEDThAOUljrPVrCAIbPf0CtxBhBXEC8DtXNPKc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UEBeMTq7F0qtJX/EwfDuv0m2F3BIt0sObO9/Cp/eDQC1WC+lHnacg4tNKsngB+sGrAd2mTaIHEhA16UnFd7uC+XOYJJCdUPQDrvgascJP2TWxlDjsJ4SuyhGNMZYBgWGV+7DvCgZMevO/Xv5NHzPsfsPOfRaxGHkxm+v7eB6Bnk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EjwGQQei; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EjwGQQei" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1249C4CEF1; Wed, 28 Jan 2026 15:37:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769614635; bh=pvQciVEDThAOUljrPVrCAIbPf0CtxBhBXEC8DtXNPKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EjwGQQeiW3HNAs8YIYggiQVxxyaQVsoFxHdhLkTodOKxgQmBm5WgS53Vy+f1S82qz hxXKYnEoJaxez98abUxASBRUTcco/im8LXWj2Na5pLpuzbbbEmpTI9b8kOpKqcVLGP /7i7UCFvNNhxhwMA0BjU9r3JS5BERtur1yl9zTaU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Fourier , Baochen Qiang , Jeff Johnson Subject: [PATCH 6.6 196/254] wifi: ath10k: fix dma_free_coherent() pointer Date: Wed, 28 Jan 2026 16:22:52 +0100 Message-ID: <20260128145351.850562154@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260128145344.698118637@linuxfoundation.org> References: <20260128145344.698118637@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Fourier commit 9282a1e171ad8d2205067e8ec3bbe4e3cef4f29f upstream. dma_alloc_coherent() allocates a DMA mapped buffer and stores the addresses in XXX_unaligned fields. Those should be reused when freeing the buffer rather than the aligned addresses. Fixes: 2a1e1ad3fd37 ("ath10k: Add support for 64 bit ce descriptor") Cc: stable@vger.kernel.org Signed-off-by: Thomas Fourier Reviewed-by: Baochen Qiang Link: https://patch.msgid.link/20260105210439.20131-2-fourier.thomas@gmail.com Signed-off-by: Jeff Johnson Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/ce.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- a/drivers/net/wireless/ath/ath10k/ce.c +++ b/drivers/net/wireless/ath/ath10k/ce.c @@ -1725,8 +1725,8 @@ static void _ath10k_ce_free_pipe(struct (ce_state->src_ring->nentries * sizeof(struct ce_desc) + CE_DESC_RING_ALIGN), - ce_state->src_ring->base_addr_owner_space, - ce_state->src_ring->base_addr_ce_space); + ce_state->src_ring->base_addr_owner_space_unaligned, + ce_state->src_ring->base_addr_ce_space_unaligned); kfree(ce_state->src_ring); } @@ -1735,8 +1735,8 @@ static void _ath10k_ce_free_pipe(struct (ce_state->dest_ring->nentries * sizeof(struct ce_desc) + CE_DESC_RING_ALIGN), - ce_state->dest_ring->base_addr_owner_space, - ce_state->dest_ring->base_addr_ce_space); + ce_state->dest_ring->base_addr_owner_space_unaligned, + ce_state->dest_ring->base_addr_ce_space_unaligned); kfree(ce_state->dest_ring); } @@ -1756,8 +1756,8 @@ static void _ath10k_ce_free_pipe_64(stru (ce_state->src_ring->nentries * sizeof(struct ce_desc_64) + CE_DESC_RING_ALIGN), - ce_state->src_ring->base_addr_owner_space, - ce_state->src_ring->base_addr_ce_space); + ce_state->src_ring->base_addr_owner_space_unaligned, + ce_state->src_ring->base_addr_ce_space_unaligned); kfree(ce_state->src_ring); } @@ -1766,8 +1766,8 @@ static void _ath10k_ce_free_pipe_64(stru (ce_state->dest_ring->nentries * sizeof(struct ce_desc_64) + CE_DESC_RING_ALIGN), - ce_state->dest_ring->base_addr_owner_space, - ce_state->dest_ring->base_addr_ce_space); + ce_state->dest_ring->base_addr_owner_space_unaligned, + ce_state->dest_ring->base_addr_ce_space_unaligned); kfree(ce_state->dest_ring); }