Re: [PATCH net] net: korina: fix dma_unmap_single() length in korina_rx()

From: Paolo Abeni

Date: Mon Oct 19 2026 - 09:08:55 EST


On 10/13/26 15:23, Thomas Fourier wrote:
dma_map_single() is called with size KORINA_RBSIZE and
dma_unmap_single() is called with size pkt_len which might be smaller.
Therefore, parts of the buffer may stay mapped after dma_unmap_single()
is called, which leaks a resource and might leave exposed mapped memory
that might be eventually freed.

Sashiko noted this is actually a cleanup and not a fix:

https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261013132319.22253-2-fourier.thomas@xxxxxxxxx

and IMHO with very little value.

Dropping this patch.

/P