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 AA26F2D781B; Thu, 15 Jan 2026 17:10:20 +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=1768497020; cv=none; b=gbNBUKaE9ZzwkEahluQZdamYEsO+VS91vNKQHMV/1RVEJqEMqFbvladW8R6QJH94k1IrK+FMi2T6Ymg8zeQlfbJP+fHFqbvLev2jvbLtaTeqTZAnfnv8hVmoMRpaq+LoHd6yn5ApK254gkApjaucE9Ew8u0y/SfegtYRXRQdJnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768497020; c=relaxed/simple; bh=zJrW3KI4kpJiJDjPFEYUfT70W1x3NJe2+7mxgRcM8Qs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CtWQ7k1ag6Zg0TVr/BsExKUTpiGeYnvl7wRsYIWNInBIHYIePMN7CYAOwtt+9a6dUc0J0kVjlRZgvb6bw4TX/6ib6tY0YGgWgpm7IOBWQdYPq4D1mmcMY+qmH8IIgK7lk4bL0gHLbplqnyP195HdawpyWLQZFGm/+G8jXxeTyY4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ElOiDZ/0; 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="ElOiDZ/0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A281C116D0; Thu, 15 Jan 2026 17:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768497020; bh=zJrW3KI4kpJiJDjPFEYUfT70W1x3NJe2+7mxgRcM8Qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ElOiDZ/0iNr1wGjOZG62iDi6/Epwtqg3j/dWIPLIm52wFleFRnIJeOlj0fjVIl59V cdmXYXJForPbJe+Zekh/wNrEXHiwds6E6lC8VaiuhyiFiUln5ncK7VxvrJxNjJ5R8w g6uJTXARlSk22Hu3hBpK0LcvB11EmYJbvNMUcfaM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Thomas Fourier , Jakub Kicinski Subject: [PATCH 6.1 01/72] atm: Fix dma_free_coherent() size Date: Thu, 15 Jan 2026 17:48:11 +0100 Message-ID: <20260115164143.540190727@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164143.482647486@linuxfoundation.org> References: <20260115164143.482647486@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.1-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);