Re: [PATCH] octeontx2: Fix otx2_dma_map_page() error return code

From: patchwork-bot+netdevbpf

Date: Mon Jan 19 2026 - 09:21:57 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Wed, 14 Jan 2026 13:31:06 +0100 you wrote:
> 0 is a valid DMA address [1] so using it as the error value can lead to
> errors. The error value of dma_map_XXX() functions is DMA_MAPPING_ERROR
> which is ~0. The callers of otx2_dma_map_page() use dma_mapping_error()
> to test the return value of otx2_dma_map_page(). This means that they
> would not detect an error in otx2_dma_map_page().
>
> Make otx2_dma_map_page() return the raw value of dma_map_page_attrs().
>
> [...]

Here is the summary with links:
- octeontx2: Fix otx2_dma_map_page() error return code
https://git.kernel.org/netdev/net/c/d998b0e5afff

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html