Re: [PATCH net] wifi: brcmsmac: Fix dma_free_coherent() size

From: Arend van Spriel

Date: Sat Mar 28 2026 - 07:08:28 EST


On 18/02/2026 14:07, Thomas Fourier wrote:
dma_alloc_consistent() may change the size to align it. The new size is
saved in alloced.

Change the free size to match the allocation size.

Fixes: 5b435de0d786 ("net: wireless: add brcm80211 drivers")
Cc: <stable@xxxxxxxxxxxxxxx>

Looks good to me.

Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>

Signed-off-by: Thomas Fourier <fourier.thomas@xxxxxxxxx>
---
drivers/net/wireless/broadcom/brcm80211/brcmsmac/dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)