Re: [PATCH net v2] et131x: Add missing check after DMA map
From: mark . einon
Date: Wed Jul 16 2025 - 07:20:03 EST
On Wed, 2025-07-16 at 11:47 +0200, Thomas Fourier wrote:
> The DMA map functions can fail and should be tested for errors.
> If the mapping fails, unmap and return an error.
>
> Fixes: 38df6492eb51 ("et131x: Add PCIe gigabit ethernet driver et131x
> to drivers/net")
> Signed-off-by: Thomas Fourier <fourier.thomas@xxxxxxxxx>
> ---
> v1 -> v2:
> - Fix subject
> - Fix double decrement of frag
> - Make comment more explicit about why there are two loops
Thanks for the updates Thomas, LGTM (also CC'd Simon who provided the
initial comments).
Acked-by: Mark Einon <mark.einon@xxxxxxxxx>