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 E91DE3BF2F8; Thu, 15 Jan 2026 17:06:13 +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=1768496774; cv=none; b=PkPrHMviBsgGjpXQObEWfmwu3KoBpHdtjwmN05BPOv66FTXlis+HoY6mfwjEdQuKo4EpXr1w54xyU0XoaPyRu05LHoXHdU3p6uO343luxJMeAze7TvzH67afz2DzRgd9mSwxiKdfSO2x4Bg20OwTG3cDjVrNIb8VASViKc4qkeM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768496774; c=relaxed/simple; bh=lzTxtNJCnZyfmqEH+mLtJEzTn//i83QTkcyCMOCBxNk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZkukLNRyxC0Q/LKvWwhmmlQkEFkqX2q2VhWoKbwAp1sQfP2N9aq3MdNMbLdLjegcvP4SFuk0/4Wmgv4RvPPLI8Y+7dmdmbvgxfsueeuJN6uVlaw3w/ROd2zcOrsW+qZNZDxV/ICJAR0YLKYmDS/Z2ybZm7/WVTFcBSOf/jQPGBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UZjqm2yT; 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="UZjqm2yT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65EB3C16AAE; Thu, 15 Jan 2026 17:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768496773; bh=lzTxtNJCnZyfmqEH+mLtJEzTn//i83QTkcyCMOCBxNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UZjqm2yTxI3qKYAdk/yWOU4Qy3x3ETiGZk8motoeI3fd3yaghC0aBFba6cXnvoenu +HfZCtFJBzdCYQIUu02hZJSPctqTCVGCvlXZidYavpzE8ODv8QDcTwtCcbSRyjUbqS IA7L7N+Ddo9t3Yn+64k+8VtfKWxTalhPN5UlQ7wM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Fourier , Jakub Kicinski Subject: [PATCH 6.6 03/88] atm: Fix dma_free_coherent() size Date: Thu, 15 Jan 2026 17:47:46 +0100 Message-ID: <20260115164146.441707174@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164146.312481509@linuxfoundation.org> References: <20260115164146.312481509@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 4d984b0574ff708e66152763fbfdef24ea40933f upstream. The size of the buffer is not the same when alloc'd with dma_alloc_coherent() in he_init_tpdrq() and freed. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: Signed-off-by: Thomas Fourier Link: https://patch.msgid.link/20260107090141.80900-2-fourier.thomas@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/atm/he.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/atm/he.c +++ b/drivers/atm/he.c @@ -1587,7 +1587,8 @@ he_stop(struct he_dev *he_dev) he_dev->tbrq_base, he_dev->tbrq_phys); if (he_dev->tpdrq_base) - dma_free_coherent(&he_dev->pci_dev->dev, CONFIG_TBRQ_SIZE * sizeof(struct he_tbrq), + dma_free_coherent(&he_dev->pci_dev->dev, + CONFIG_TPDRQ_SIZE * sizeof(struct he_tpdrq), he_dev->tpdrq_base, he_dev->tpdrq_phys); dma_pool_destroy(he_dev->tpd_pool);