Re: [PATCH] xsk: Free variable on error path

2020-09-02 Thread Daniel Borkmann
On 9/2/20 6:33 PM, Alex Dewar wrote: In xp_create_dma_map(), memory is allocated to dma_map->dma_pages, but then dma_map is erroneously compared to NULL, rather than the member. Fix this. Addresses-Coverity: ("Dead code") Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") Signed-off-by:

[PATCH] xsk: Free variable on error path

2020-09-02 Thread Alex Dewar
In xp_create_dma_map(), memory is allocated to dma_map->dma_pages, but then dma_map is erroneously compared to NULL, rather than the member. Fix this. Addresses-Coverity: ("Dead code") Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") Signed-off-by: Alex Dewar --- net/xdp/xsk_buff_pool