From nobody Sat Feb 7 19:41:18 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F09427BF6C for ; Tue, 6 Jan 2026 08:50:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767689410; cv=none; b=BIwEOJ2EKNDPRDaslSW5Gr3BZHlAJXlwKaii1y9sj/S8RRLWYzWH4/ulUTJSZjK5UoWq42AQYy01Ima3FzPX1HGFtvUAnnftY6ejAFeRU4fMW58eYlFV+XeF8sNsBsLcswAmRbE6uERwtiy9j+AIUoCxhqH1jhMsvUV+VRU6WMQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767689410; c=relaxed/simple; bh=Mfr8IanOt8jxU7vewSt4DV+aakgkKleTBni/LrpiBkc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OjE6IOVSXa7VoX/SyAIqpTjlhmaaL5lZx0oBVIBYy/D8d6R6pSVl8asxsLODwxP/MA+QkEyvWsttUnZ6kkqZH9CpsC4KPwDrALIzKA953Ek2W2mADhOmL2Dg3rwR4++vri1ao1GeU3MDtjEgIrTFQcLqPrBh8HFCP5WaYLK1RHU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=AkP7Iw00; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AkP7Iw00" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-477aa91e75dso913915e9.3 for ; Tue, 06 Jan 2026 00:50:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767689406; x=1768294206; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hV/GMcvRyLCr7DUYxLRLYti8UWuf7naTwJHZtiyzU+M=; b=AkP7Iw00c1wFdlkYWq6yqgIF1CKlsR12fcDUPOL31p3kLkLR/ssOVsd7YqLz8P0+45 zPnNxxQf0culpGPdFzTrdJ5lTq3ZNWVJae7v49F4MuDkszzsCKItuT3JFtENQXFhq54c RsXJjr5tniRMg5H6HZwfHq6PFDwQA9DlqyKM6P3sb0yDCLnHwwj7wtrx402r6om/OQbG 8PLPTw54DDVi8s1xRpQRTZ3JcpYRYt0PXwqvA1oAJ7++d5Z+5wJOBmG1exrCR+CGiNTc SauophdfPBQPSecYWelhrr3sTf9MStySRg7m/DvfYpvEI6W0kZz4ozeBV3XnD1/5eimC GfmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767689406; x=1768294206; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hV/GMcvRyLCr7DUYxLRLYti8UWuf7naTwJHZtiyzU+M=; b=caPIKCx2X/eKGtO3B0bLLJo9W/ugOdcYkFSMe7ipdgWOMovFjpYOG0D6MEnQWOLCxG SORqPteNF2q+NsHBornMdqlDJ+33Gy7ForM6AvFMChOjAvlJ+zPB0KECTTNsSxovyvNe GgOnht7G3fZ4bzZH10zesOFOn3U36Pd/ujb/o+cVOV1u7QeDpIN2zCevx1HSbNbfbG7a rlCC4d4miGc0bKlk0KUcE2YgMnGMqhDGjcYrd4XZ8YlsKVGaqLA7VJ5clvq1GSeBn8T7 ssjTHMTfUg4mwOlK8eb2hOL1ZJ/ZhuNEd3VSQtEfcStshcjezOGbWVcMFDms94adZM+E b6Gw== X-Forwarded-Encrypted: i=1; AJvYcCUEvbQP2ix5rzf+SSJuu1ZLHIUdeTcJUaIbKFiRpV0ic0eC+rgrYgPxzN8y9JGQdup1GhFXsDwzlnTZShA=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+q03hrZFd9KrFbZh8V9wbNOHEKzAhk/L3se6muWXf+O1X5TOx sKmZwRmaPmV2wXnb0zGGf5Mhre/8AmbfejkKQAzn8QtD8CBhyFN31wj5 X-Gm-Gg: AY/fxX61H/Bt97Q+tUG/97F8x7j0g+rz+VicllvEbEWpOc0ryyTmwAN9s8IbdVa37Sd yWL2QnlX+ilvXtr/NMnGZfIIf6lGmgAyGSlHJL9ayzJq4uy+9a0BocDkzuUTu4Z7HQuEM/BAsIn um19vECsJk520bt00yrnilQBSle8RmQrmP0yNj0JUJTPukGNoQ3sgWu5KrPL2QEv7mf8+J+Ui/s Mt58aVHrEnQ80aHwYy1pmGYOXr1yjxVS8Bp9fKnXoB/It6VPd2UghfFOIi6m8XE0TjbgQ3JxWKO CynUmsqgT6ClfVkn6Z1QB1Dd41Y11W5Oz9cFcMelC58D88V1KK1P8xt92smbkh9dwOttm6eSrNV 1veNvC1GEDIBA2f9RzH9+Iv4SXY5UafBpM+teng3lraUM0AuyPZrEUPI9KEfD1SxHLpI1UND4Z3 Gyr2j2PI75dL3oZ0B4mW4Ip0hMShfhsWJOUMLrH2DMIFv5Gi1pYwoStCPrPXmFTodUsKf2LN61B RdK3Gs= X-Google-Smtp-Source: AGHT+IEbVRYctNc4A+yz5Gyy1tMc8wt0TvOceywuKntqSSYPrKkT3maN7meDceSemXFvcHnWFEclrQ== X-Received: by 2002:a05:600c:138b:b0:475:d7b8:8505 with SMTP id 5b1f17b1804b1-47d7f0a86f9mr14273175e9.7.1767689406312; Tue, 06 Jan 2026 00:50:06 -0800 (PST) Received: from thomas-precision3591.paris.inria.fr (wifi-pro-83-215.paris.inria.fr. [128.93.83.215]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-47d7fb35701sm12342695e9.11.2026.01.06.00.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jan 2026 00:50:06 -0800 (PST) From: Thomas Fourier To: Cc: Thomas Fourier , stable@vger.kernel.org, Jeff Johnson , Pradeep Kumar Chitrapu , Sriram R , Kalle Valo , Wen Gong , linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net] wifi: ath12k: fix dma_free_coherent() pointer Date: Tue, 6 Jan 2026 09:49:04 +0100 Message-ID: <20260106084905.18622-2-fourier.thomas@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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: d889913205cf ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices") Cc: Signed-off-by: Thomas Fourier Reviewed-by: Baochen Qiang --- drivers/net/wireless/ath/ath12k/ce.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/ce.c b/drivers/net/wireless/at= h/ath12k/ce.c index 9a63608838ac..4aea58446838 100644 --- a/drivers/net/wireless/ath/ath12k/ce.c +++ b/drivers/net/wireless/ath/ath12k/ce.c @@ -984,8 +984,8 @@ void ath12k_ce_free_pipes(struct ath12k_base *ab) dma_free_coherent(ab->dev, pipe->src_ring->nentries * desc_sz + CE_DESC_RING_ALIGN, - pipe->src_ring->base_addr_owner_space, - pipe->src_ring->base_addr_ce_space); + pipe->src_ring->base_addr_owner_space_unaligned, + pipe->src_ring->base_addr_ce_space_unaligned); kfree(pipe->src_ring); pipe->src_ring =3D NULL; } @@ -995,8 +995,8 @@ void ath12k_ce_free_pipes(struct ath12k_base *ab) dma_free_coherent(ab->dev, pipe->dest_ring->nentries * desc_sz + CE_DESC_RING_ALIGN, - pipe->dest_ring->base_addr_owner_space, - pipe->dest_ring->base_addr_ce_space); + pipe->dest_ring->base_addr_owner_space_unaligned, + pipe->dest_ring->base_addr_ce_space_unaligned); kfree(pipe->dest_ring); pipe->dest_ring =3D NULL; } @@ -1007,8 +1007,8 @@ void ath12k_ce_free_pipes(struct ath12k_base *ab) dma_free_coherent(ab->dev, pipe->status_ring->nentries * desc_sz + CE_DESC_RING_ALIGN, - pipe->status_ring->base_addr_owner_space, - pipe->status_ring->base_addr_ce_space); + pipe->status_ring->base_addr_owner_space_unaligned, + pipe->status_ring->base_addr_ce_space_unaligned); kfree(pipe->status_ring); pipe->status_ring =3D NULL; } --=20 2.43.0