Re: [PATCH][next] xsk: Fix null check on error return path

From: Daniel Borkmann
Date: Wed Sep 02 2020 - 14:33:58 EST


On 9/2/20 5:07 PM, Gustavo A. R. Silva wrote:
Currently, dma_map is being checked, when the right object identifier
to be null-checked is dma_map->dma_pages, instead.

Fix this by null-checking dma_map->dma_pages.

Addresses-Coverity-ID: 1496811 ("Logically dead code")
Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings")
Signed-off-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>

Applied, thanks!