# Re: \[PATCH net v2\] et131x: Add missing check after DMA map

- From: mark.einon@gmail.com
- Date: 2025-07-16 11:19:52 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/07/3136820
- Thread: https://ratatoskr.run/netdev/2025/07/3136659/t.md

```text
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 <redacted>
> ---
> 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@gmail.com>
```
