[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aNadF8lvpXa5beZJ@horms.kernel.org>
Date: Fri, 26 Sep 2025 15:03:03 +0100
From: Simon Horman <horms@...nel.org>
To: Alok Tiwari <alok.a.tiwari@...cle.com>
Cc: krishneil.k.singh@...el.com, alan.brady@...el.com,
aleksander.lobakin@...el.com, andrew+netdev@...n.ch,
anthony.l.nguyen@...el.com, przemyslaw.kitszel@...el.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, netdev@...r.kernel.org,
intel-wired-lan@...ts.osuosl.org
Subject: Re: [PATCH net] idpf: fix mismatched free function for
dma_alloc_coherent
On Thu, Sep 25, 2025 at 11:02:10AM -0700, Alok Tiwari wrote:
> The mailbox receive path allocates coherent DMA memory with
> dma_alloc_coherent(), but frees it with dmam_free_coherent().
> This is incorrect since dmam_free_coherent() is only valid for
> buffers allocated with dmam_alloc_coherent().
>
> Fix the mismatch by using dma_free_coherent() instead of
> dmam_free_coherent
>
> Fixes: e54232da1238 ("idpf: refactor idpf_recv_mb_msg")
> Signed-off-by: Alok Tiwari <alok.a.tiwari@...cle.com>
Reviewed-by: Simon Horman <horms@...nel.org>
Powered by blists - more mailing lists