Thread (1 message) 1 message, 1 author, 2023-02-07

Re: [PATCH net v2 2/2] net: ll_temac: Reset buffer on dma_map_single() errors

From: <hidden>
Date: 2023-02-07 07:59:48
Also in: linux-arm-kernel, lkml

Jonas Suhr Christensen [off-list ref] writes:
To avoid later calls to dma_unmap_single() on address'
that fails to be mapped, free the allocated skb and
set the pointer of the address to NULL. Eg. when a mapping
fails temac_dma_bd_release() will try to call dma_unmap_single()
on that address if the structure is not reset.

Fixes: d07c849cd2b9 ("net: ll_temac: Add more error handling of dma_map_single() calls")

Signed-off-by: Jonas Suhr Christensen <redacted>
Acked-by: Esben Haabendal <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help