mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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 <asml.silence@gmail.com> Link: https://patch.msgid.link/02904c6d83dbe5cc1c671106a5c97bd93ab31006.1764542851.git.asml.silence@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
3c4159b301
commit
854858848b
@@ -307,6 +307,7 @@ static int page_pool_init(struct page_pool *pool,
|
||||
|
||||
free_ptr_ring:
|
||||
ptr_ring_cleanup(&pool->ring, NULL);
|
||||
xa_destroy(&pool->dma_mapped);
|
||||
#ifdef CONFIG_PAGE_POOL_STATS
|
||||
if (!pool->system)
|
||||
free_percpu(pool->recycle_stats);
|
||||
|
||||
Reference in New Issue
Block a user