public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: "Creeley, Brett" <bcreeley@amd.com>
To: Thomas Fourier <fourier.thomas@gmail.com>
Cc: stable@vger.kernel.org, Chas Williams <3chas3@gmail.com>,
	chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>,
	"David S. Miller" <davem@davemloft.net>,
	linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] atm: Fix dma_free_coherent() size
Date: Mon, 5 Jan 2026 13:55:10 -0800	[thread overview]
Message-ID: <bbb300d1-ccdc-4a4b-8110-1e2d27367620@amd.com> (raw)
In-Reply-To: <20260105211913.24049-2-fourier.thomas@gmail.com>



On 1/5/2026 1:19 PM, Thomas Fourier wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
>
>
> The size of the buffer is not the same when alloc'd with
> dma_alloc_coherent() in he_init_tpdrq() and freed.
>
> Fixes: ede58ef28e10 ("atm: remove deprecated use of pci api")
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
> ---
>   drivers/atm/he.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/atm/he.c b/drivers/atm/he.c
> index ad91cc6a34fc..92a041d5387b 100644
> --- 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),

Sizes seem to align now. LGTM.

Reviewed-by: Brett Creeley <brett.creeley@amd.com>
>                                    he_dev->tpdrq_base, he_dev->tpdrq_phys);
>
>          dma_pool_destroy(he_dev->tpd_pool);
> --
> 2.43.0
>
>


  reply	other threads:[~2026-01-05 21:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-05 21:19 [PATCH] atm: Fix dma_free_coherent() size Thomas Fourier
2026-01-05 21:55 ` Creeley, Brett [this message]
2026-01-07  2:03 ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bbb300d1-ccdc-4a4b-8110-1e2d27367620@amd.com \
    --to=bcreeley@amd.com \
    --cc=3chas3@gmail.com \
    --cc=chas@cmf.nrl.navy.mil \
    --cc=davem@davemloft.net \
    --cc=fourier.thomas@gmail.com \
    --cc=linux-atm-general@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox