Skip to content

Commit 8548588

Browse files
isilencekuba-moo
authored andcommitted
net: page pool: xa init with destroy on pp init
The free_ptr_ring label path initialises ->dma_mapped xarray but doesn't destroy it in case of an error. That's not a real problem since init itself doesn't do anything requiring destruction, but still match it with xa_destroy() to silence warnings. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://patch.msgid.link/02904c6d83dbe5cc1c671106a5c97bd93ab31006.1764542851.git.asml.silence@gmail.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 3c4159b commit 8548588

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/core/page_pool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ static int page_pool_init(struct page_pool *pool,
307307

308308
free_ptr_ring:
309309
ptr_ring_cleanup(&pool->ring, NULL);
310+
xa_destroy(&pool->dma_mapped);
310311
#ifdef CONFIG_PAGE_POOL_STATS
311312
if (!pool->system)
312313
free_percpu(pool->recycle_stats);

0 commit comments

Comments
 (0)