]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/core: Free pfn_list with appropriate kvfree call
authorAkhilesh Patil <akhilesh@ee.iitb.ac.in>
Sun, 10 Aug 2025 17:51:58 +0000 (23:21 +0530)
committerLeon Romanovsky <leon@kernel.org>
Wed, 13 Aug 2025 11:00:21 +0000 (07:00 -0400)
commit111aea0464c20f3eb25a48d5ff6c036e6b416123
treeb45502a5def7f08d0e676fdd804497c0300ae1b2
parent2186e8c39eb156b3557a467ce4e5dc3f24826609
RDMA/core: Free pfn_list with appropriate kvfree call

Ensure that pfn_list allocated by kvcalloc() is freed using corresponding
kvfree() function. Match memory allocation and free routines kvcalloc -> kvfree.

Fixes: 259e9bd07c57 ("RDMA/core: Avoid hmm_dma_map_alloc() for virtual DMA devices")
Signed-off-by: Akhilesh Patil <akhilesh@ee.iitb.ac.in>
Link: https://patch.msgid.link/aJjcPjL1BVh8QrMN@bhairav-test.ee.iitb.ac.in
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/umem_odp.c