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 65DE341B367; Wed, 4 Feb 2026 14:57:50 +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=1770217070; cv=none; b=aP36ZVnv3l2kPr3NEBDBoOKIsYj8NCefdh/ZMTxP6YM6/9byWnK1fAMIqdr395AnpWJ0ZY22D6ANC8I0/hXW6vSmMk95KOrQpAjrPInc1DLc/2z60rNl9Pmb/kGekxrKuT3751XwXvvyiKqm5RO47YfdBK5z4jE2ZzHp6/B9OTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770217070; c=relaxed/simple; bh=sE6YtcqB+hodrEBJwu2ZN6NMG7L+IIOqtDJUJnjQpHc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pZLs+wQEstNAXi/MQ84LOOlDAqL+tr5TKST+aIWLWttw/uNjs+byxa0widDKNvcTYkGItqPdMV67h2i//baxIs7BHDVcND4FIFOPQnVwNf51VmNX/POX6F/DhRFHIyI7TyQh/9d+Dm8phGjRWdwEwHI0yPo4GeGiQWxYpG5Pceo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BEubWvl0; 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="BEubWvl0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D644C116C6; Wed, 4 Feb 2026 14:57:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770217070; bh=sE6YtcqB+hodrEBJwu2ZN6NMG7L+IIOqtDJUJnjQpHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BEubWvl0v/4GSYbx9H1vcUwq8ZvnwJja0I2DMrt2Gd4pxCe9hbK6j4nT8n46iwbkM Ub/uscHKXzXosSFAtMh9tk/lErLaBFpMj69KBR/cBAPd/Nvy+pgrnweai5ouJ6Xkpr VTajASdZShg3Z+YpruMULJV/ZScy+URJlpZk4IuU= 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 5.15 114/206] wifi: ath10k: fix dma_free_coherent() pointer Date: Wed, 4 Feb 2026 15:39:05 +0100 Message-ID: <20260204143902.309809597@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143858.193781818@linuxfoundation.org> References: <20260204143858.193781818@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 5.15-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 @@ -1791,8 +1791,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); } @@ -1801,8 +1801,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); } @@ -1822,8 +1822,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); } @@ -1832,8 +1832,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); }