Re: [PATCH] block: mtip32xx: Fix usage of dma_map_sg()
From: Andy Shevchenko
Date: Fri Jun 27 2025 - 10:08:48 EST
On Fri, Jun 27, 2025 at 02:11:19PM +0200, Thomas Fourier wrote:
> The dma_map_sg() can fail and, in case of failure, returns 0. If it
> fails, mtip_hw_submit_io() returns an error.
>
> The dma_unmap_sg() requires the nents parameter to be the same as the
> one passed to dma_map_sg(). This patch saves the nents in
> command->scatter_ents.
I don't know why I'm in Cc list here, but FWIW,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
with a caveat that I am not an expert at all in these areas. Code
just look okay and doing sane things.
--
With Best Regards,
Andy Shevchenko